前话: 其实大家要学会看源码, 我接下来要说的这些东东,与其等别人讲,还不如自己搞几个代码试一下,印象还深刻点TThread.Queue和TThread.Synchronize的区别, 效果上:二者的作用都是让业务代码在主线程中执行,差别: Synchronize是阻塞,Queue是非阻塞 代码上  Read More
posted @ 2017-02-03 22:15 findumars Views(2098) Comments(1) Diggs(1)
Annotation在Java的世界正铺天盖地展开,有空写这一篇简单的annotations的文章,算是关于Annotation入门的文章吧,希望能各位们能抛砖,共同学习...... 不讲废话了,实践才是硬道理. 第一部分:了解一下java1.5起默认的三个annotation类型: 一个是@Ove Read More
posted @ 2017-02-03 22:14 findumars Views(404) Comments(0) Diggs(0)
Delphi有个很大的问题就是,厂商的不作为(没有封装标准的Cipher类库),让大家自己造轮子。 今天的轮子就是RSA签名,由于Delphi没有封装Cipher类库,所以只的自己写了。 因为要在Firemokey中实现RSA算法,用于手机端,心里有二个方案: 1. 实现RSA算法 2. 通过Jav Read More
posted @ 2017-02-03 22:12 findumars Views(3437) Comments(0) Diggs(0)
原文 http://hi.baidu.com/fightiger/blog/item/ba69a434f36e18add1a2d350.html 用户对应用程序经常有这样的要求:要求它能记住它的settings,比如窗口大小,位置,一些别的设置,还有一个经常用的,就是recent files,等等这 Read More
posted @ 2017-02-03 07:39 findumars Views(27374) Comments(1) Diggs(2)
首先准备个ICO图标。例如:myappico.ico用记事本新建个文件里面就写一行:IDI_ICON1 ICON DISCARDABLE "/images/myappico.ico" 保存改名为 myapp.rc文件并把它放到你的QT工程项目的目录。 在工程目录下新建images文件夹并你的图标my Read More
posted @ 2017-02-03 07:38 findumars Views(14469) Comments(0) Diggs(0)
1: void QTimer::singleShot ( int msec, QObject * receiver, const char * member ) [static] 样例: #include <QApplication> #include <QTimer> int main(int a Read More
posted @ 2017-02-03 07:36 findumars Views(9493) Comments(0) Diggs(0)
自定义QT窗口部件外观 重新定义Qt内置窗口部件的外观常用的方法有两种:一是通过子类化QStyle 类或者预定义的一个样式,例如QWindowStyle,来定制应用程序的观感;二是使用Qt样式表。 QStyle 类的使用 1. 准备必要的背景图片。在你想添加自定义风格的工程目录下新建一个文件夹“im Read More
posted @ 2017-02-03 07:34 findumars Views(3126) Comments(0) Diggs(0)
qt中文编码 来源:http://www.cublog.cn/u1/59481/showart_1947231.html 前些日子,被编码折磨了一段时间,总结一下Qt中的编码。 【Qt 编码简单实验】 首先,Qt中得QString 类对字符串进行了封装,其内部使用Unicode对传入的串进行编码。这 Read More
posted @ 2017-02-03 07:33 findumars Views(7128) Comments(0) Diggs(0)
串口、TCP、UDP传输中文字符时,先将字符串转内码。客户端接收到数据后,将内码转为字符串就OK了 QByteArray CommonFunction::strToInterCode(constQString &str)//字符串转内码 http://blog.csdn.net/liuguangzh Read More
posted @ 2017-02-03 07:32 findumars Views(3358) Comments(0) Diggs(0)
原文 http://fanzhichao.blog.hexun.com/22330640_d.html 在终端输出彩色信息有点类似于html的语法,即在要输出的文字前加上转义字符。 指令格式如下\033[*m 这里的*就是转义字符,例如我们要输出一段绿色的文字 qDebug("\033[32mHel Read More
posted @ 2017-02-03 07:31 findumars Views(1877) Comments(0) Diggs(1)
1、如何在窗体关闭前自行判断是否可关闭答:重新实现这个窗体的closeEvent()函数,加入判断操作 void MainWindow::closeEvent(QCloseEvent*event){if (maybeSave()){writeSettings();event->accept();}e Read More
posted @ 2017-02-03 07:30 findumars Views(760) Comments(0) Diggs(0)
原文http://mobile.51cto.com/symbian-272563.htm 本文介绍的是Qt 字库移植并能显示中文,需要的字体库文件,一般是多个。具体移植那一个,看你使用的字库是什么了,先来看内容。 AD: 原文http://mobile.51cto.com/symbian-27256 Read More
posted @ 2017-02-03 07:28 findumars Views(966) Comments(0) Diggs(0)
在触摸设备上可以使用Qt的手势事件 要激活手势事件,需要执行以下操作: 第一步,为QWidget控件注册手势事件 参考源代码 http://download.csdn.net/detail/liuguangzhou123/7616623 http://blog.csdn.net/liuguangzh Read More
posted @ 2017-02-03 07:27 findumars Views(4356) Comments(0) Diggs(0)
原文http://mobile.51cto.com/symbian-272552.htm 本文介绍的是Qt 字库移植并能显示中文,需要的字体库文件,一般是多个。具体移植那一个,看你使用的字库是什么了,先来看内容。 AD: 原文http://mobile.51cto.com/symbian-27255 Read More
posted @ 2017-02-03 07:27 findumars Views(3787) Comments(0) Diggs(0)
windows下Qt5.2 for Android开发环境配置 1.下载安装Qt 5.2.0 for Android (Windows 32-bit) http://qt-project.org/downloads 2.打开Qt Creator,打开帮助,输入android,找到官方说明,按照教程一 Read More
posted @ 2017-02-03 07:25 findumars Views(1787) Comments(0) Diggs(0)
http://blog.csdn.net/liuguangzhou123/article/details/8109089 Read More
posted @ 2017-02-03 07:24 findumars Views(4038) Comments(0) Diggs(0)
一、应用程序中文化 1).Qt安装目录下有一个目录translations/,在此目录下有qt_zh_CN.ts和 qt_zh_CN.qm把它们拷贝到你的工程目录下。2).在main函数加入下列代码:QTranslator translator(0); translator.load("qt_zh_ Read More
posted @ 2017-02-03 07:22 findumars Views(569) Comments(0) Diggs(0)
啥是 OpenMobile ACL?它是一个应用程序兼容层(Application Compatibility Layer),能让 MeeGo 设备运行全部 Android 应用程序。 据 ACL 宣称: 100% 兼容 Android 所有程序。 和原生 MeeGo 程序以同样速度性能,不会拖慢速 Read More
posted @ 2017-02-03 07:18 findumars Views(475) Comments(0) Diggs(0)
上一次关注Qt Lighthouse是在6月初,可是现在都8月底了。时间真快... Lighthouse 是 QPA(Qt Platform Abstraction) 项目的名字,它使得将Qt移植到新的平台变得比较简单。尽管现在它已经完全融入到了Qt主干代码中,lighthouse作为独立项目已经不 Read More
posted @ 2017-02-03 07:16 findumars Views(2099) Comments(0) Diggs(0)
模态对话框就是指在子对话框弹出时,焦点被强行集中于该子对话框,子对话框不关闭,用户将无法操作其他的窗口。非模态相反,用户仍然可以操作其他的窗口,包括该子对话框的父对话框。 如果从线程角度来讲,模态对话框实际上是线程阻塞的,也就是子对话框是一个线程,但是在创建这个子线程之后,父窗口就阻塞了;模态对话框 Read More
posted @ 2017-02-03 07:15 findumars Views(903) Comments(0) Diggs(0)
QPainter默认只能在paintEvent里面调用,但是: 在其他事件中绘制窗体,提示信息如下:QPainter::begin: Paint device returned engine == 0, type: 1绘制操作应该在paintEvent中完成.有一个属性值,在构造函数中设置可以在pa Read More
posted @ 2017-02-03 07:14 findumars Views(2225) Comments(0) Diggs(0)
Prerequisites MS Visual Studio Express 2008 [microsoft.com] NOTE: Visual Studio Express 2010 is not supported CMake [cmake.org] Git [code.google.com] Read More
posted @ 2017-02-03 07:12 findumars Views(240) Comments(0) Diggs(0)
浅议Delphi中的Windows API调用http://tech.163.com/school • 2005-08-15 10:57:41 • 来源: 天极网为了能在Windows下快速开发应用程序,Delphi对Windows的控件都进行了很好的封装,这样,我们就可以直接使用Delphi的控件 Read More
posted @ 2017-02-03 07:10 findumars Views(346) Comments(0) Diggs(0)
文章出处:DIY部落(http://www.diybl.com/course/3_program/c/c_js/20090303/157373_3.html) POINT 1:QThread类的实例与普通类的实例没什么不同,只是运行着的run()函数会不同 例1: class MThread :pu Read More
posted @ 2017-02-03 07:09 findumars Views(935) Comments(0) Diggs(0)
原文 http://www.cppblog.com/lauer3912/archive/2011/04/10/143870.html 一、基本分类:qDebug : 调试信息提示qWarning: 一般的警告提示qCritical: 严重错误提示qFatal: 致命错误提示二、如何截获这些信息Qt提 Read More
posted @ 2017-02-03 07:07 findumars Views(1974) Comments(0) Diggs(0)
unbuntu下卸载QT方法一:you can remove it like this, those developers should add this somewhere ! like next to the download textlinuxmint ~ # cd /optlinuxmint Read More
posted @ 2017-02-03 07:06 findumars Views(1939) Comments(0) Diggs(1)
问题:生成的dll文件QT无法静态/隐式调用 分析:调用的lib库可能是msvc编译的,而我用Qt调用,Qt默认编译器是minGW,两种编译器生成的函数名不一样,所以调用的时候你要用哪个函数,编译结果肯定显示这个函数未定义! 解决1:用VS2008生成DLL文件时,采用__declspec方式导出函 Read More
posted @ 2017-02-03 07:04 findumars Views(1804) Comments(0) Diggs(0)
Laravel 是一套简洁、优雅的PHP Web开发框架(PHP Web Framework)。它可以让你从面条一样杂乱的代码中解脱出来;它可以帮你构建一个完美的网络APP,而且每行代码都可以简洁、富于表达力。 功能特点 1、语法更富有表现力 你知道下面这行代码里 “true” 代表什么意思么? 另 Read More
posted @ 2017-02-03 06:01 findumars Views(611) Comments(0) Diggs(0)
Sending iOS (and Android) remote push notifications from your Delphi service with the HTTP/2 protocol https://github.com/grijjy/DelphiRemotePushSender Read More
posted @ 2017-02-03 05:58 findumars Views(483) Comments(0) Diggs(0)
ddd Read More
posted @ 2017-02-03 05:56 findumars Views(212) Comments(0) Diggs(0)
好多好多解决方案: I am doing something similar in one of my applications and this function works for me in xp/vista/w7: Another solution is not to steal focus Read More
posted @ 2017-02-03 01:44 findumars Views(1876) Comments(0) Diggs(0)