• 4797阅读
  • 0回复

test程序下载到板子上出现Application Problem问题 [复制链接]

上一主题 下一主题
离线leiyuhong
 

只看楼主 倒序阅读 楼主  发表于: 2007-10-31
我把qte的程序test下载到板子上,运行的时候,弹出
Application Problem
test is not responing
would you like to application to exit?yes or no
这样的对话框
我仔细查看了我的程序,我的主界面的程序上,退出按扭也连接到了close槽
而我的main主函数里也把退出槽连接上了
下面是我的主函数:
#include "test.h"
#include <qapplication.h>

#define QT_NO_WIZARO

int main(int argc,char **argv )
{
QApplication a(argc,argv);
testForm dlg;
QObject::connect( &dlg,SIGNAL(clicked()),&a,SLOT(quit()) );
a.setMainWidget(&dlg);
dlg.show();
/*
testForm *dlg = new testForm();
a.setMainWidget(dlg);
dlg->show();
*/
a.connect(&a,SIGNAL(lastWindowClosed()),&a,SLOT(quit()) );
return a.exec();
}

就是不知道为什么老是弹出Application Problem对话框,主界面上点击退出按纽就是不退出
快速回复
限100 字节
 
上一个 下一个