首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

real 6410 开发板 qt有关问题

2012-09-12 
real 6410 开发板 qt问题开始写了个 helloword..helloworld 程序代码如下:#include QApplication#includ

real 6410 开发板 qt问题
开始写了个 helloword..

helloworld 程序代码如下:

#include <QApplication>#include <QPushButton>

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也会出现同种情况,



点击上层程序,会是不是出现 qt下层的程序界面。找了很久找不到原因。
请大神指导。

[解决办法]
可能你板子里没有鼠标啊,触摸屏的相应库瑟

热点排行