123456

 

2011年12月10日

QT学习3:QT4中调用QT3的原有类

摘要: #define QT3_SUPPORT#include //在每一个使用QT的应用程序中都必须使用QApplication,它管理了各种//应用程序的广泛资源,比如默认字体和光标#include //经典的图形用户界面按钮,QWidget,可以显示一段文本或QPixmap#include //QT中的字体#include //布局类,QVBox把它的子窗口排成垂直的行,QVbox是QT3的,要使用它//必须在建工程时选上Qt3 Support library,命名为Q3XXXint main(int argc, char *argv[]){ QApplication a(argc, argv) 阅读全文

posted @ 2011-12-10 15:52 hgy413 阅读(401) 评论(0) 推荐(0) 编辑

QT学习2:QFont和退出

摘要: #define QT3_SUPPORT#include "hello.h"#include //在每一个使用QT的应用程序中都必须使用QApplication,它管理了各种//应用程序的广泛资源,比如默认字体和光标#include //经典的图形用户界面按钮,QWidget,可以显示一段文本或QPixmap#include //QT中的字体int main(int argc, char *argv[]){ QApplication a(argc, argv);//argc是命令行变量的数量,argv是数组,C、C++特征 QPushButton quit("Qui 阅读全文

posted @ 2011-12-10 15:07 hgy413 阅读(354) 评论(0) 推荐(0) 编辑

QT学习1 hello程序

摘要: #define QT3_SUPPORT#include "hello.h"#include //在每一个使用QT的应用程序中都必须使用QApplication,它管理了各种//应用程序的广泛资源,比如默认字体和光标#include //经典的图形用户界面按钮,QWidget,可以显示一段文本或QPixmapint main(int argc, char *argv[]){ QApplication a(argc, argv);//argc是命令行变量的数量,argv是数组,C、C++特征 QPushButton hello("hello Qt");//C 阅读全文

posted @ 2011-12-10 14:21 hgy413 阅读(157) 评论(0) 推荐(0) 编辑

导航