会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
静观海月
博客园
首页
新随笔
新文章
联系
管理
订阅
上一页
1
2
3
下一页
2018年12月3日
Qt 滚动窗口类
摘要: Qt 界面中使用QScrollArea类实现窗口滚动,
阅读全文
posted @ 2018-12-03 09:38 静观海月
阅读(1605)
评论(0)
推荐(0)
2018年11月15日
Qt 适合做界面
摘要: 确实感觉的Qt的界面开发相比MFC方便了许多,不用为设计和实现窗口烦恼。不需要太细研究界面的实现,从Qt自带的例子中就能轻松学习和应用。在界面开发上Qt的实用比MFC前进了许多。做C++开发不管怎样如果很关注界面开发,那Qt是比较合适的。 不过实现功能库类的东西,用visual studio是缺少不
阅读全文
posted @ 2018-11-15 16:44 静观海月
阅读(1049)
评论(0)
推荐(0)
2018年8月30日
Qt 比对TreeItem节点
摘要: 1 void TreeModel::settingsUpdate(const QStringList &lines){ 2 QList parents; 3 TreeItem* it1,* item1 = new TreeItem(rootItem->itemData); 4 TreeItem* it2,* item2 = rootItem; 5 ...
阅读全文
posted @ 2018-08-30 13:45 静观海月
阅读(663)
评论(0)
推荐(0)
Qt 按名称查找子节点
摘要: 1 TreeItem* TreeModel::GetItem(QStringList& list, TreeItem* parent ,int deep) 2 { 3 if( list.at(deep) == parent->data(0).toString()) 4 { 5 if( ++deep == list.count()) 6 ...
阅读全文
posted @ 2018-08-30 13:41 静观海月
阅读(841)
评论(0)
推荐(0)
2018年5月4日
rtsp
摘要: #include #include #include "main.h" #include "rtsp.h" #include "lock.h" #include #include extern "C" { #include #include #include #include } #ifdef __cplusplus #define T LpRtsp_T ...
阅读全文
posted @ 2018-05-04 09:15 静观海月
阅读(339)
评论(0)
推荐(0)
c函数创建文件和路径
摘要: bool NewFileName(const char* filename) { size_t len; if (0 < (len = strlen(filename))) { char* tmpbuf, *p, c; tmpbuf = (char*)malloc(len + 1); strcpy_s(tmpbuf, len...
阅读全文
posted @ 2018-05-04 09:12 静观海月
阅读(727)
评论(0)
推荐(0)
2018年4月20日
windows线程池
摘要: #define _WIN32_DCOM #include #include #include #include #include #include #include #include #include #include #include #include "..\..\lib\libcii\cii11\include\libcii.h" #inc...
阅读全文
posted @ 2018-04-20 14:14 静观海月
阅读(295)
评论(0)
推荐(0)
c函数 文件名通配符
摘要: 1 static bool IsMatched(CONST TCHAR* p, CONST TCHAR* q) 2 { 3 CONST TCHAR *r, *z, *x = _T(""); 4 for (r = p; *p; ++p) 5 if (*p == '\\') 6 r = p + 1; 7 else ...
阅读全文
posted @ 2018-04-20 11:59 静观海月
阅读(299)
评论(0)
推荐(0)
2018年4月18日
ace-socket-reconnect
摘要:
阅读全文
posted @ 2018-04-18 08:32 静观海月
阅读(148)
评论(0)
推荐(0)
2018年4月11日
打印日志宏定义
摘要: #define TRACE_PRINT(pszFmt, ...) \ do { \ FILE* file ; \ if (0 == _tfopen_s(&file, _T("shmm.error.log"), _T("a"))) \ { \ TCHAR sdate[32] ,stime[32]; \ ...
阅读全文
posted @ 2018-04-11 17:31 静观海月
阅读(525)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告