Hi
I created a simple window application to reproduce the problem, which i believe must be a Qt bug. Here is the code for main.cpp:
#ifdef Q_OS_WIN
#include <windows.h> // for Sleep
#else
#include <time.h>
#endif
static void Sleep(int ms)
{
//QTEST_ASSERT(ms > 0);
#ifdef Q_OS_WIN
Sleep(uint(ms));
#else
struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 };
nanosleep(&ts, NULL);
#endif
}
int main(int argc, char *argv[])
{
// need this on mac to render web contents nice and smooth
splash.show();
Sleep(2000);
splash.hide();
MainWindow w;
w.show();
return a.exec();
}
#ifdef Q_OS_WIN
#include <windows.h> // for Sleep
#else
#include <time.h>
#endif
static void Sleep(int ms)
{
//QTEST_ASSERT(ms > 0);
#ifdef Q_OS_WIN
Sleep(uint(ms));
#else
struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 };
nanosleep(&ts, NULL);
#endif
}
int main(int argc, char *argv[])
{
// need this on mac to render web contents nice and smooth
QApplication::setGraphicsSystem("raster");
QApplication a(argc, argv);
QSplashScreen splash(QPixmap(":/showme.jpg"));
splash.show();
Sleep(2000);
splash.hide();
MainWindow w;
w.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks