I added ":" prefix, and selected png image instead jpg, but it still doesn't work. Image's not displayed. Contents of my main.cpp file again
#include <QApplication>
#include <QPlastiqueStyle>
#include <QSplashScreen>
#include <QTimer>
#include "maker.h"
#include "about.h"
int main(int argc, char *argv[])
{
QPixmap pixmap
(":new/prefix1/poker.png");
splashTimer.setSingleShot( true );
splashTimer.setInterval( 4000 ); //4 seconds
QObject::connect( &splashTimer,
SIGNAL( timeOut
() ),
&splash,
SLOT( close
()) );
splashTimer.start();
splash.show();
MainWindow MainWindow;
MainWindow.show();
return app.exec();
}
#include <QApplication>
#include <QPlastiqueStyle>
#include <QSplashScreen>
#include <QTimer>
#include "maker.h"
#include "about.h"
int main(int argc, char *argv[])
{
QApplication::setStyle ( new QPlastiqueStyle() );
QApplication app(argc, argv);
QPixmap pixmap(":new/prefix1/poker.png");
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();
MainWindow MainWindow;
MainWindow.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Do someone know, what's wrong?
edit:
all forms were created using designer
Bookmarks