我把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对话框,主界面上点击退出按纽就是不退出