疯狂delphi - 朱建强 (一些小例子很实用,也是我所关心的几个问题) Android实例-获取安卓手机WIFI信息(XE8+小米2)http://www.cnblogs.com/FKdelphi/p/4814155.html Android实例-读取设备联系人(XE8+小米2)http://w Read More
posted @ 2015-10-16 22:49 findumars Views(701) Comments(0) Diggs(0)
本文转载自:http://blog.sina.com.cn/s/blog_671732440100uwxh.html 使用qtscipt库解析json数组首先在工程文件中加 QT += script 然后头文件加 #include <QtScript> 然后解析 QString str = "{\" Read More
posted @ 2015-10-16 22:39 findumars Views(781) Comments(0) Diggs(0)
起源 qtcn中文论坛中有网友问到: 这儿其实有两个问题: 模态对话框 和 事件循环 没有必然联系 事件循环 和 子线程 没有必然联系 题外: 如果进一步呢?其实我们还可以说: 模态对话框 和 QDialog 没必要联系 QDialog 对话框 两种常规用法: 非模态 当然,这儿用指针(即分配到he Read More
posted @ 2015-10-16 22:31 findumars Views(4974) Comments(0) Diggs(0)
熟悉的陌生人Qt 是事件驱动的,所以当你用Qt的时候,几乎时时刻刻和 QEventLoop 打交道、,只是你可能没有意识到:QCoreApplicaton::exec()QApplication::exec()QDialog::exec()QThread::exec()QDrag::exec()QM... Read More
posted @ 2015-10-16 22:27 findumars Views(1962) Comments(0) Diggs(0)
熟悉的陌生人Qt 是事件驱动的,所以当你用Qt的时候,几乎时时刻刻和 QEventLoop 打交道、,只是你可能没有意识到:QCoreApplicaton::exec()QApplication::exec()QDialog::exec()QThread::exec()QDrag::exec()QM... Read More
posted @ 2015-10-16 22:26 findumars Views(8033) Comments(0) Diggs(1)
原文: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)
文章来源:http://blog.csdn.net/ccf19881030/article/details/18220447问题一:错误:C1083:无法打开包括文件:“QApplication”:Nosuchfileordirectory出现原因:Qt5里不再用QtGui模块,而是使用QtWidg... Read More
posted @ 2015-10-16 21:56 findumars Views(568) Comments(0) Diggs(0)
使用MinGW附带的工具reimp.exe,该工具一般在MinGW in目录下,其readme文档在MinGWdoc eimp目录下,方法很简单,比如:C:CodeBlocksMinGWlibdx9>reimp d3d8.lib就会生成一个“libd3d8.a”文件,这个文件就可以让基于MinGW的... Read More
posted @ 2015-10-16 21:54 findumars Views(1583) Comments(0) Diggs(0)
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://devbean.blog.51cto.com/448512/355100 前面我们说过,Qt 不是使用的“标准的” C++ 语言,而是对其进行了一定程度的“扩展”。这里我们从Qt新增 Read More
posted @ 2015-10-16 21:48 findumars Views(700) Comments(0) Diggs(0)
国外品牌1.InTouch:Wonderware(万维公司) 是 Invensys plc“生产管理”部的一个运营单位,是全球工业自动化软件的领先供应商。2.IFix:GE Fanuc 智能设备公司由美国通用电气公司(GE)和日本Fanuc公司合资组建,提供自动化硬件和软件解决方案,帮助用户降低成本... Read More
posted @ 2015-10-16 21:47 findumars Views(3689) Comments(0) Diggs(0)
文章来源:http://blog.csdn.net/bigbug_zju/article/details/39525281计算机系统中的堆和栈是跟程序员最密切的两个概念。如果没有栈和堆的概念,下面程序的错误就不知道其所以然。[cpp]view plaincopy#includeintmain(int... Read More
posted @ 2015-10-16 21:36 findumars Views(476) Comments(0) Diggs(0)
最近在复习QT,准备做项目了,QT Creator 默认生成的代码 explicit Dialog(QWidget *parent = 0)中,有这么一个关键字explicit,用来修饰构造函数。以前在Windows下写程序的时候,基本上没有碰到这个关键字,那么这个关键字是做什么用的呢?关键字 ex... Read More
posted @ 2015-10-16 21:33 findumars Views(922) Comments(0) Diggs(0)
文章来源:http://devbean.blog.51cto.com/448512/245063/在代码中,我们使用tr()将需要翻译的字符串标记出来。lupdate工具就是提取出tr()函数中的相关字符串。tr()函数是QObject类的一个static函数,其签名如下:staticQString... Read More
posted @ 2015-10-16 21:29 findumars Views(5175) Comments(0) Diggs(0)
Qt如何调用VC++生成的动态链接库?假设当前有VC++编译器生成的动态库文件testdll.h,testdll.lib和testdll.dll。testdll.h文件源码如下:#ifdef TESTDLL_EXPORTS#define TESTDLL_API __declspec(dllexpor... Read More
posted @ 2015-10-16 20:37 findumars Views(2424) Comments(0) Diggs(0)
一、参考文章:http://bbs.csdn.net/topics/390632657?page=1setStyleSheet("QTabWidget::pane{border-width:1px;border-color:rgb(48,104,151);\border-style:outset;b... Read More
posted @ 2015-10-16 20:36 findumars Views(26535) Comments(0) Diggs(0)
Qt支持三种类型的信号-槽连接:1,直接连接,当signal发射时,slot立即调用。此slot在发射signal的那个线程中被执行(不一定是接收对象生存的那个线程)2,队列连接,当控制权回到对象属于的那个线程的事件循环时,slot被调用。此slot在接收对象生存的那个线程中被执行3,自动连接(缺省... Read More
posted @ 2015-10-16 20:20 findumars Views(5707) Comments(0) Diggs(0)