Hi Santosh.
I am using QSplashScreen as follows:
#include <QtGui/QApplication>
#include "myapp.h"
#include <QSplashScreen>
int main(int argc, char *argv[])
{
mainWindow w;
splash->show();
Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
splash
->showMessage
(QObject::tr("Setting up the main window..."),topRight,Qt
::white);
w.setCentralWidget(w.splitter);
w.show();
app.processEvents();
splash->finish(&w);
delete splash;
return app.exec();
}
#include <QtGui/QApplication>
#include "myapp.h"
#include <QSplashScreen>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
mainWindow w;
QSplashScreen *splash = new QSplashScreen(QPixmap(":/myapp/Resources/splash.png"));
splash->show();
Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
splash->showMessage(QObject::tr("Setting up the main window..."),topRight,Qt::white);
w.setCentralWidget(w.splitter);
w.show();
app.processEvents();
splash->finish(&w);
delete splash;
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks