2018年12月3日
摘要: Qt 界面中使用QScrollArea类实现窗口滚动, 阅读全文
posted @ 2018-12-03 09:38 静观海月 阅读(1585) 评论(0) 推荐(0) 编辑
  2018年11月15日
摘要: 确实感觉的Qt的界面开发相比MFC方便了许多,不用为设计和实现窗口烦恼。不需要太细研究界面的实现,从Qt自带的例子中就能轻松学习和应用。在界面开发上Qt的实用比MFC前进了许多。做C++开发不管怎样如果很关注界面开发,那Qt是比较合适的。 不过实现功能库类的东西,用visual studio是缺少不 阅读全文
posted @ 2018-11-15 16:44 静观海月 阅读(1032) 评论(0) 推荐(0) 编辑
  2018年8月30日
摘要: 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 静观海月 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 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 静观海月 阅读(821) 评论(0) 推荐(0) 编辑
  2018年5月4日
摘要: #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 静观海月 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 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 静观海月 阅读(714) 评论(0) 推荐(0) 编辑
  2018年4月20日
摘要: #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 静观海月 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 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 静观海月 阅读(287) 评论(0) 推荐(0) 编辑
  2018年4月18日
摘要: 阅读全文
posted @ 2018-04-18 08:32 静观海月 阅读(141) 评论(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 静观海月 阅读(513) 评论(0) 推荐(0) 编辑