ok, this code is working
#include <QtGui/QApplication>
#include "qtnetwork.h"
#include<QTimer>
#include <QSplashScreen>
#include <QMainWindow>
int main(int argc, char *argv[])
{
splash
->setPixmap
(QPixmap("C:\\Documents and Settings\\am002bh\\Desktop\\error-checkin.PNG"));
splash->show();
QTimer::singleShot(2500, splash,
SLOT(close
()));
QTimer::singleShot(2500,
&mainWin,
SLOT(show
()));
return a.exec();
}
#include <QtGui/QApplication>
#include "qtnetwork.h"
#include<QTimer>
#include <QSplashScreen>
#include <QMainWindow>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap("C:\\Documents and Settings\\am002bh\\Desktop\\error-checkin.PNG"));
splash->show();
QMainWindow mainWin;
QTimer::singleShot(2500, splash, SLOT(close()));
QTimer::singleShot(2500, &mainWin, SLOT(show()));
return a.exec();
}
To copy to clipboard, switch view to plain text mode
i have used QMainWindow and instead of using a qrc, i have used a straight path..so either u have a problem with ur qrc or mainwindow itself
Bookmarks