02 2019 档案

点击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 阅读(2499) 评论(0) 推荐(0)

变参数的宏
摘要:其中 阅读全文

posted @ 2019-02-28 15:56 liujx2019 阅读(93) 评论(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 阅读(343) 评论(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 阅读(237) 评论(0) 推荐(0)

qt tableview 选择模式
摘要:QAbstractItemView::SingleSelectionQAbstractItemView::ContiguousSelectionQAbstractItemView::ExtendedSelectionQAbstractItemView::MultiSelectionQAbstract 阅读全文

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

导航