Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4240080
  • 博文数量: 1148
  • 博客积分: 25453
  • 博客等级: 上将
  • 技术积分: 11949
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 21:14
文章分类

全部博文(1148)

文章存档

2012年(15)

2011年(1078)

2010年(58)

分类: C/C++

2011-07-20 14:32:25

说明:
   在ubuntu10.10下
    
源码安装 4.7.3,然后通过 creator 选择 qmake为源码安装的qmake


参考资料:豆子qt学习
          豆子:
 Qt学习之路(1-60).part3.rar    Qt学习之路(1-60).part1.rar    Qt学习之路(1-60).part2.rar  

工程代码: 4.rar  

  1. #include <QApplication>
  2. #include <QLabel>
  3. #include <QPushButton>

  4. int main(int argc, char *argv[])
  5. {
  6.     QApplication app(argc, argv);
  7.  // QLabel *label = new QLabel("hello world");
  8. // label->show();
  9.     QPushButton *pushbutton = new QPushButton("quit");
  10.     QObject::connect(pushbutton,SIGNAL(clicked()),&app,SLOT(quit()));
  11.     pushbutton->show();
  12.     return app.exec();
  13. }

设置为 源码安装的 qt4.7.3
















阅读(579) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~