Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.1
-
None
-
None
-
-
9d207f042ea135eda6bcd91c47d581914470fa6d
Description
As a workaround move the call to showFullScreen into a slot, as in the commented code in this example.
#include <QtGui> class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(); public slots: void testSlot(); void testSlot2(); private: QByteArray geo ; }; MainWindow::MainWindow() : QMainWindow() { // QTimer::singleShot(1000, this, SLOT(testSlot())); QTimer::singleShot(2000, this, SLOT(testSlot2())); } void MainWindow::testSlot() { show(); showFullScreen(); }; void MainWindow::testSlot2() { showNormal(); }; #include "main.moc" int main(int argc, char *argv[]) { QApplication app(argc, argv); MainWindow mainWindow; mainWindow.show(); mainWindow.showFullScreen(); return app.exec(); }