2019年3月6日

清除整个 QStringList 的内容

摘要: clear(); 阅读全文

posted @ 2019-03-06 11:12 liujx2019 阅读(1351) 评论(0) 推荐(0)

显示 QStringList 的内容

摘要: QStringList s; s textBrowser->append(s.at(i)); 阅读全文

posted @ 2019-03-06 11:11 liujx2019 阅读(406) 评论(0) 推荐(0)

BareTail 观看文件增加的工具

摘要: 阅读全文

posted @ 2019-03-06 09:35 liujx2019 阅读(236) 评论(0) 推荐(0)

窗口左上角添加图标

摘要: QIcon icon;icon.addFile(QStringLiteral("bitbug_favicon.ico"), QSize(), QIcon::Normal, QIcon::Off);widget->setWindowIcon(icon); 阅读全文

posted @ 2019-03-06 09:33 liujx2019 阅读(563) 评论(0) 推荐(0)

2019年2月28日

点击Qtableview表头,触发事件

摘要: refer to http://developer.qt.nokia.com/faq/answer/how_can_i_sort_the_items_in_a_qtablewidget_on_multiple_columns https://bbs.csdn.net/topics/360139821 阅读全文

posted @ 2019-02-28 18:21 liujx2019 阅读(2493) 评论(0) 推荐(0)

变参数的宏

摘要: 其中 阅读全文

posted @ 2019-02-28 15:56 liujx2019 阅读(90) 评论(0) 推荐(0)

用互斥锁实现程序只能有一个实例

摘要: HANDLE mSingleInstanceMutex = NULL; bool moreThanOneInstance() { mSingleInstanceMutex = CreateMutex(NULL, FALSE, L"SingleNFDLinkGUI"); if (NULL == mSingleInstanceMutex || ERROR_ALREADY_EXIST... 阅读全文

posted @ 2019-02-28 15:54 liujx2019 阅读(341) 评论(0) 推荐(0)

Visual Studio 2015 + Windows 2012 R2, c++/cli Array::Sort() 抛出异常

摘要: 在Windows7上编译就是正常。 可见Windows2012 R2缺少了一些东西。 另外,有一个现象一样,但原因不一样的 https://stackoverflow.com/questions/4641715/c-cli-application-crashing-randomly-on-relea 阅读全文

posted @ 2019-02-28 15:47 liujx2019 阅读(233) 评论(0) 推荐(0)

2019年2月22日

qt tableview 选择模式

摘要: QAbstractItemView::SingleSelectionQAbstractItemView::ContiguousSelectionQAbstractItemView::ExtendedSelectionQAbstractItemView::MultiSelectionQAbstract 阅读全文

posted @ 2019-02-22 16:15 liujx2019 阅读(2943) 评论(1) 推荐(0)

2019年1月28日

Openstack Python 源代码的路径

摘要: /usr/lib/python2.7/dist-packages/swift/ 阅读全文

posted @ 2019-01-28 17:13 liujx2019 阅读(561) 评论(0) 推荐(0)

导航