原文:http://blog.csdn.net/oowgsoo/article/details/1529411 Qt的信号和槽机制是Qt的一大特点,实际上这是和MFC中的消息映射机制相似的东西,要完成的事情也差不多,就是发送一个消息然后让其它窗口响应,当然,这里的消息是广义的说法,简单点说就是如何在 Read More
posted @ 2015-10-16 22:23 findumars Views(332) Comments(0) Diggs(0)
本文转载自http://hi.baidu.com/xchinux/item/9044d8ce986accbb0d0a7b87一、将某个QT4项目改成QT5遇到的问题 该Qt4项目以前是使用Qt4.7.4MSVC2008开发的,因为使用到了OWC10(OfficeWebComponents),使用MS... Read More
posted @ 2015-10-16 22:07 findumars Views(2521) Comments(0) Diggs(0)
Qt编译时经常出现以下警告:warning: unused parameter 'arg1' [-Wunused-parameter]warning: unused variable 'i' [-Wunused-variable]原因是由于某些函数参数或者某些变量未使用,这在程序当中有时候很正常;所... Read More
posted @ 2015-10-16 22:05 findumars Views(977) Comments(0) Diggs(0)
本文转载自:http://woboq.com/blog/cpp11-in-qt5.htmlC++11 in Qt5Posted by Olivier Goffart on 11 June 2012C++11 is the name of the current version of the C++ ... Read More
posted @ 2015-10-16 22:04 findumars Views(537) Comments(0) Diggs(0)
Qt不像VC++的win32/MFC编程那样,提供了现成的sleep函数可供调用。Qt把sleep函数封装在QThread类中。子线程可以调用sleep函数。但是如果用户想在主线程实现延时功能,该怎么办呢?方法是自定义sleep延时函数。通过QDateTime来实现时间差。 #include <QD Read More
posted @ 2015-10-16 22:00 findumars Views(4377) Comments(1) Diggs(1)