1、在mainwindow中重写closeEvent void closeEvent(QCloseEvent *event); 2、在cpp中实现 QDialog* log = new QDialog(this); log->setObjectName("log"); log->setStyleSh ...
分类:
其他好文 时间:
2020-05-24 09:19:49
阅读次数:
321
1、新建空白类,然后继承QWidget 此时会生成Test.h和Test.cpp两个文件,由于继承了QWidget,但是并没有绘制界面【onPaint里draw..】,所以将这个类生成的对象show一下,界面时什么都没有的 2、新建QWidget界面子类 此时会生成3个文件,Test.h、Test. ...
分类:
其他好文 时间:
2020-05-24 00:32:51
阅读次数:
91
1、视频 std::unique_ptr<VideoEncoder> InternalEncoderFactory::CreateVideoEncoder( const SdpVideoFormat& format) { if (absl::EqualsIgnoreCase(format.name, ...
分类:
Web程序 时间:
2020-05-23 15:04:39
阅读次数:
89
1. C++中创建进程的代码示例: // ProcessDemo.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include<windows.h> #include <iostream> using namespace std; int main() { STA ...
分类:
编程语言 时间:
2020-05-22 21:07:38
阅读次数:
197
工作汇报 编辑器 xwl: 今天: 默认代码py/c/cpp "[ 18" ] 明天: @lpx 把debug写上去(按钮填、用户手动看) @tzj 前端+按钮 ongoing:debugger 燃尽图: 后端: lpx: 今天: terminal收到消息时刷新文件树 "[F 70" ] termi ...
分类:
其他好文 时间:
2020-05-22 10:10:38
阅读次数:
47
题意 :你有$n$天的时间,这段时间中你有$m$长考试,$s$表示宣布考试的日期,$d$表示考试的时间,$c$表示需要准备时间,如果你不能准备好所有考试,输出$ 1$,否则输出你每天都在干什么,如果这一天你有考试,输出$m+1$,如果你要准备第$i$场考试,输出$i$,否则休息,输出$0$. 题解 ...
分类:
其他好文 时间:
2020-05-22 09:15:48
阅读次数:
52
1. 新建文件 vim a.cpp 2. 默认进入是命令模式不能编辑内容 3. 按下"i",进入插入模式 可以进行编辑 4. 按下ESC 推出插入模式,回到命令模式 5.保存 保存并退出=:wq 只退出不保存=:q ...
分类:
系统相关 时间:
2020-05-21 21:21:08
阅读次数:
76
"POJ 2778" 对于所有串构建AC自动机,将AC自动机上的位置作为状态,暴力矩阵转移即可 cpp int n,m; int a[N]; char s[N]; int val[N]; const int SIZE=101; int trie[SIZE][4]; int End[SIZE]; in ...
分类:
其他好文 时间:
2020-05-21 15:58:56
阅读次数:
39
原文:NetCore MimeMapping获取MIME public static class MimeMapping { private abstract class MimeMappingDictionaryBase { private readonly Dictionary _mapping... ...
分类:
移动开发 时间:
2020-05-21 12:06:07
阅读次数:
63
工作汇报 编辑器 xwl: 今天: 调研了分栏 "[ 19" ]:需要上层(标签页)实现 调研了gdb、pdb "[ 20" " 21" ] 问题:locals输入输出占满terminal、 无法自动获取状态 明天: @lpx 把debug写上去(按钮填、用户手动看) 默认模版:草稿纸+cpp才模版 ...
分类:
其他好文 时间:
2020-05-19 20:58:08
阅读次数:
65