摘要: 1. 1 #include <iostream> 2 #define C11 1 3 4 template<int N> 5 class Fac 6 { 7 public: 8 #if C95 9 //enum { value = N * Fac<N-1>::value }; 10 #endif 1 阅读全文
posted @ 2021-01-03 17:40 三岁玩童 阅读(58) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <functional> //function bind #include <vector> #include <algorithm> //for_each #include <iomanip> //set 阅读全文
posted @ 2021-01-02 20:27 三岁玩童 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1 rem 不能有空格 2 set DIR=%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%%time:~6,2%_%time:~9,2% 3 4 md %DIR% 5 cd %DIR% 6 7 md test 8 9 10 REM p 阅读全文
posted @ 2020-11-01 18:32 三岁玩童 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 1.下载: https://www.google.com/intl/zh-CN/chrome/ 2.安装: sudo dpkg -i package.deb 3.查看: 3.1 dpkg -l | grep chrome 3.2 显示不全 ls -l |less,ls -l | more 4.放到桌 阅读全文
posted @ 2020-08-30 19:45 三岁玩童 阅读(2412) 评论(0) 推荐(0) 编辑
摘要: 以下的内容为网上摘记 1.QT pri 文件的作用? i 是什么东西?包含(include)的首字母。类似于C、C++中的头文件吧,我们可以把 *.pro 文件内的一部分内容单独放到一个 *.pri 文件内,然后包含进来。 将源文件的设置独立出来,放到propriprfprl.pri文件内: SOU 阅读全文
posted @ 2020-07-26 19:48 三岁玩童 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1.静态效果 2.动态效果 3.开源 https://github.com/SanSuiWanTong/QT_ToolBox Graphics_2D下 阅读全文
posted @ 2020-06-04 09:32 三岁玩童 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 下载 sqlite-amalgamation-XXX 源码后 VS下 1. exe:cl shell.c sqlite3.c -Fesqlite3.exe 2. dll: cl sqlite3.c -link -dll -out:sqlite3.dll 3. lib: 添加.c .h,改工程名,编译 阅读全文
posted @ 2020-05-29 19:22 三岁玩童 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1.树、表形式数据的显示,可以拖拽,应用代理 2.重载AbstractItemView 3.重载QWidget,自定义2,3列的数据以图形方式显示 4.开源:代码位置 https://github.com/SanSuiWanTong/QT_ToolBox Bug待改善 阅读全文
posted @ 2020-05-26 16:43 三岁玩童 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1.关键代码: 1 QChart *QcharWidget::createLineChart() const 2 { 3 QChart *chart = new QChart(); 4 chart->setTitle("Line chart"); 5 6 DataTable::const_itera 阅读全文
posted @ 2020-05-10 18:52 三岁玩童 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1.主要代码: C++: 1 void QJSEngineDemo::initCenterControl() 2 { 3 QJSValue jsMetaObject = m_pJSEngin->newQMetaObject(&centerControl::staticMetaObject); 4 m 阅读全文
posted @ 2020-05-07 18:38 三岁玩童 阅读(2065) 评论(0) 推荐(0) 编辑