Whenever I run my program, the call to app.exec() from the Main function never returns. My program hangs and I end up killing it. This is true if it's run from a debugger or stand alone.
I'm using Qt 4.2 on Kubuntu 7.04 Linux.
I tried checking the return code from app.exec(), but since it never returns I never see it. The code executes successfully up to int check = app.exec(), at which point it hangs, though the code doesn't crash.
Any thoughts?
EDIT:: I've also tried commenting out all of the code between the declaration of app and the call to app.exec(). It still hangs!?
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(application);
....
int check = app.exec();
cout << "Check: " << check << endl;
return check;
}
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(application);
QApplication app(argc, argv);
....
int check = app.exec();
cout << "Check: " << check << endl;
return check;
}
To copy to clipboard, switch view to plain text mode
Bookmarks