This was my interpretation also.
But by the way:
#include <QtGui>
int main(int argc, char *argv[])
{
splash.show();
//app.processEvents();
//...
window.show();
//splash.finish(&window);
return app.exec();
}
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPixmap pixmap("f0.png");
QSplashScreen splash(pixmap);
splash.show();
//app.processEvents();
//...
QMainWindow window;
window.show();
//splash.finish(&window);
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Commented this 2 lines and both splash and main windows open at the same time. Click closes the splash.
Thought this was only possible if using app.processEventes(); !
Bookmarks