saman_artorious
13th March 2013, 13:28
it seems QPlastiqueStyle is not implemented in Qt 5.0.1.
I need to create a splash screen. what I do is
QApplication::setStyle ( new QPlastiqueStyle() );
QPixmap pixmap("new/prefix1/Poker.jpg");
QSplashScreen splash(pixmap);
QTimer splashTimer;
splashTimer.setSingleShot( true );
splashTimer.setInterval( 4000 ); //4 seconds
QObject::connect( &splashTimer, SIGNAL( timeOut() ), &splash, SLOT( close() ));
splashTimer.start();
splash.show();
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
though, I get the error:
I need to create a splash screen. what I do is
QApplication::setStyle ( new QPlastiqueStyle() );
QPixmap pixmap("new/prefix1/Poker.jpg");
QSplashScreen splash(pixmap);
QTimer splashTimer;
splashTimer.setSingleShot( true );
splashTimer.setInterval( 4000 ); //4 seconds
QObject::connect( &splashTimer, SIGNAL( timeOut() ), &splash, SLOT( close() ));
splashTimer.start();
splash.show();
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
though, I get the error: