Hi, after nmake (without warning or erros), I launched my app and immediately appear
a console message:
And app doesn't start. I never see it first.....what happen? thanks...Qt Code:
To copy to clipboard, switch view to plain text mode
Hi, after nmake (without warning or erros), I launched my app and immediately appear
a console message:
And app doesn't start. I never see it first.....what happen? thanks...Qt Code:
To copy to clipboard, switch view to plain text mode
Regards
Did you make a QApplication object?
What's your main() function look like?
Software Engineer
my app was working first.......
Qt Code:
#include <qapplication.h> #include <qsplashscreen.h> #include "mymainform.h" int main( int argc, char ** argv ) { qFatal("This system has no OpenGL support"); splash.show(); a.processEvents(); myMainForm W; //W.resize(600,500); a.setMainWidget(&W); W.show(); a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); splash.finish(&W); return a.exec(); }To copy to clipboard, switch view to plain text mode
Regards
Do you have any global variables which might be using a paint device? Global vars are created before main() is called (thus before QApplication object is created).
I think it was this below, a variabile of mainform class but initialized as global....
is there a way to do this below without that error? (I'd like prog variabile global; thanks
Qt Code:
//mainform.ui.h myProgressDialog* prog = new myProgressDialog("Saving file...", "Cancel", 0, 1); void MainForm::init() { ........ }To copy to clipboard, switch view to plain text mode
Regards
Initialise it after QApplication is created, for example in main().
Yes, just initialize it to 0 here and create myProgressDialog after you instantiate QApplication.Originally Posted by mickey
Global variables are dangerous.Originally Posted by mickey
Bookmarks