Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.1
-
None
Description
Regression: QSplashScreen Errors on AIX. This worked with Qt 4.3.3.
This shows the error
#ifdef _WIN32
#include <windows.h>
#include <lmcons.h>
#else //Added for UNix support — TCS ODC
#include<sys/utsname.h>
#include <unistd.h>
#endif
#include <time.h>
#include <QApplication>
#include <QPixmap>
#include <QSplashScreen>
#include <QDialog>
#include <QString>
#include <QtCore>
void IVTSleep ( const int ms )
{
#ifdef _WIN32
Sleep(ms);
#else
int seconds = ms/1000;
if (seconds == 0)
seconds = 1;
sleep(seconds);
#endif
}
int main(int argc, char** argv)
{
QApplication app( argc, argv );
QPixmap pix(351, 217);
pix.fill(Qt::black);
QSplashScreen splash( pix, Qt::WindowStaysOnTopHint );
splash.show();
QDialog mainwindow;
QString msg = QString("Hello QT! Is this message showing yet?");
splash.showMessage(msg, Qt::AlignLeft | Qt::AlignBottom, Qt::white);
app.setMainWidget(&mainwindow);
IVTSleep(100000000);
mainwindow.show();
splash.finish( &mainwindow );
return app.exec();
}