PDA

View Full Version : error: QPlastiqueStyle: No such file



saman_artorious
13th March 2013, 14: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:

wysota
13th March 2013, 14:47
So don't use QPlastiqueStyle.

saman_artorious
13th March 2013, 14:56
So don't use QPlastiqueStyle.

So, what are the other alternatives? explain it plz.

wysota
13th March 2013, 15:15
Why do you need an alternative?

saman_artorious
13th March 2013, 15:32
Why do you need an alternative?
I simply loaded a window and set the background image. it pretty works like a QSplash now.

wysota
13th March 2013, 19:31
What is it supposed to work like?