为何只能在其关联的线程内启动timer? 在QTimer源码分析(以Windows下实现为例) 一文中,我们谈到: QTimer的是通过QObject的timerEvent()实现的,开启和关闭定时器是通过QObject的startTimer()和killTimer完成的。 startTimer最终 Read More
posted @ 2017-04-11 23:10 findumars Views(1261) Comments(0) Diggs(0)
想让一个Widget成为模态,我们只需要对其设置: 注意:这是QWidget的成员函数 ,也就是说,QWidget可以显示为模态或非模态! setWindowModality 除了直接调用setAttribute外,QWidget 提供了一个易用的函数,来设置窗体的模态。其源码如下: 注意:该函数的 Read More
posted @ 2017-04-11 23:06 findumars Views(6790) Comments(0) Diggs(0)
http://blog.csdn.net/akof1314/article/details/5078563 Read More
posted @ 2017-04-11 22:56 findumars Views(291) Comments(0) Diggs(0)
原理是什么。。。 Read More
posted @ 2017-04-11 22:54 findumars Views(1123) Comments(2) Diggs(0)
http://download.csdn.net/detail/akof1314/3073289 Read More
posted @ 2017-04-11 22:48 findumars Views(819) Comments(0) Diggs(0)