Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52616

#showMinimized() breaks restoring to fullscreen window

    XMLWordPrintable

Details

    • a02959bb5b43a3f9d881e5213ceedf535202b6a1

    Description

      When you minimize a fullscreen window with #showMinimized() and then re-open the window from your task-bar, the window is not restored into fullscreen mode.

      Following QWindowStateChangeEvent are issued on #showMinimized():

      1. WindowMinimized|WindowFullScreen
      2. WindowNoState
      3. WindowMinimized

      It looks like this issue not reproducible on my environment only since it has been reported for KDE KRDC by multiple users: https://bugs.kde.org/show_bug.cgi?id=361570

      Note: the following example works fine with Qt 4.8.7, but fails with Qt 5.5.1.

      #include <QApplication>
      #include <QPushButton>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          QPushButton *button = new QPushButton("Minimize");
          QObject::connect(button, SIGNAL(pressed()), button, SLOT(showMinimized()));
          button->showFullScreen();
          return app.exec();
      }
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-52616
          # Subject Branch Project Status CR V

          Activity

            People

              ogoffart Olivier Goffart (Woboq GmbH)
              uwolfer Urs Wolfer
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes