Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0
-
None
-
Linux (Ubuntu 13.10)
-
bcfacd4b6f35dfd00f0f04d562f345bbc98cec13
Description
With the following example, the QSplashScreen is visible but only as a transparent window, it does not appear at all.
#include <QtWidgets> int main(int argc, char **argv) { QApplication a(argc, argv); QMainWindow mw; QPixmap pix(200, 200); pix.fill(Qt::red); QPainter p(&pix); p.setBrush(Qt::blue); p.drawRect(20,20,50,50); p.end(); QSplashScreen splash(pix); //, Qt::WindowStaysOnTopHint); splash.show(); a.processEvents(); splash.raise(); splash.finish(&mw); a.processEvents(); QTimer::singleShot(5000, &mw, SLOT(show())); return a.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-35757 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
75254,1 | Make sure the QSplashScreen isn't closed instantly when calling finish() | stable | qt/qtbase | Status: ABANDONED | +1 | 0 |
98074,4 | Make sure the QSplashScreen isn't closed instantly when calling finish() | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |