QPainter 能绘制: point, line, rectangle, ellipse, arc, chord, polygon, pie segment, Bezier curve, QPixmap, QImgeQt支持的高级特性: antialising, alpha blending, g Read More
posted @ 2016-10-19 23:27 findumars Views(1894) Comments(0) Diggs(0)
解压下载到的.gz源码:gunzip xxx.tar.gztar xvf xxx.tar, 其实在Mac中可以直接双击解压的.然后定位到解压后的目录下:./configuremakesudo make install这样Qt就会被安装到/usr/local/Trolltech/qt-4.4.0 了这 Read More
posted @ 2016-10-19 23:26 findumars Views(1184) Comments(0) Diggs(0)
#include "BuiltinDialog.h" #include <QtGui/QTextEdit> #include <QtGui/QPushButton> #include <QtGui/QFileDialog> #include <QtGui/QFontDialog> #include  Read More
posted @ 2016-10-19 23:25 findumars Views(643) Comments(0) Diggs(0)
界面中的字符串, 尽量的使用QObject::tr(text); 以便以后转换界面语言, 即使现在你还不考虑这个问题. 方法一: 每次设置时都使用: button->setText(QApplication::translate("", "好吗?", 0, QApplication::Unicode Read More
posted @ 2016-10-19 23:23 findumars Views(14644) Comments(0) Diggs(0)
1.Qt的风格 a) Qt简介 Qt是一个跨平台的C++图形用户界面应用程序开发库,使用Qt可以开发出高质量的图形用户接口,它是完全面向对象的、易于扩展且允许真正的组件编程。Qt获得了很大的成功,特别是它的信号-槽机制是非常值得研究的通信机制,它也是Linux发行版标准组件KDE(K Desktop Read More
posted @ 2016-10-19 23:21 findumars Views(3185) Comments(0) Diggs(0)