新版本的QQ聊天窗口可以实现拖动,分离出新的窗口。浏览器等软件也可以实现类似操作。所以心血来潮想用Qt实现类似的功能。想用QTabWidget直接实现是很难的,仔细阅读源码,发现QTabWidget内部是由QStackedWidget和QTabBar组合实现的。所以很自然的想到,只要继承QTabBa Read More
posted @ 2016-02-01 18:17 findumars Views(4877) Comments(0) Diggs(0)
http://blog.csdn.net/hai200501019/article/details/8474582http://blog.csdn.net/hai200501019/article/details/8482876http://blog.csdn.net/hai200501019/ar Read More
posted @ 2016-02-01 18:13 findumars Views(735) Comments(0) Diggs(0)
可重入和线程安全 可重入和线程安全这两个术语,经常出现在计算机编程中,用于指明类和函数在多线程程序中的使用。 可重入:若一个程序或子程序可以“安全的被并行执行(Parallel computing)”,则称其为可重入(reentrant或re-entrant)的。 若一个函数是可重入的,则该函数: Read More
posted @ 2016-02-01 18:08 findumars Views(604) Comments(0) Diggs(0)
Qt状态机框架是基于状态图XML(SCXML) 实现的。从Qt4.6开始,它已经是QtCore模块的一部分。尽管它本身是蛮复杂的一套东西,但经过和Qt的事件系统(event system)、信号槽(signals and slots)及属性系统(property system)深度整合,它使用门槛并 Read More
posted @ 2016-02-01 18:07 findumars Views(1706) Comments(0) Diggs(0)
从内存泄露开始? 很简单的入门程序,应该比较熟悉吧 ^_^ #include <QApplication> #include <QLabel> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel *label Read More
posted @ 2016-02-01 18:02 findumars Views(3833) Comments(0) Diggs(1)