Chinaunix首页 | 论坛 | 博客
  • 博客访问: 182218
  • 博文数量: 50
  • 博客积分: 1053
  • 博客等级: 少尉
  • 技术积分: 577
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-05 22:55
文章分类

全部博文(50)

文章存档

2016年(2)

2015年(1)

2014年(6)

2012年(11)

2011年(22)

2010年(5)

2009年(3)

我的朋友

分类: C/C++

2012-07-18 11:35:10

本帖最后由 titer1 于 2012-7-18 10:48 编辑

开始写了个 helloword..

helloworld 程序代码如下:

#include #include

int main(int argc,char *argv[]){    

QApplication app(argc,argv);    

QPushButton *button=new QPushButton("Quit"); 
  
QObject::connect(button,SIGNAL(clicked()),&app,SLOT(quit())); 
   button->show;  
  return app.exec();
}

程序成功运行(-qws参数),但是显示的button不能点击,不能触摸(也就是不响应点击事件)。

运行列子程序 qt coliding mice也会出现同种情况,
小Q截图-20120718104708.png 

点击上层程序,下面的shell 会出来响应。请大神指导。
阅读(1186) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~