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

Child window state is not correctly restored after parent window is minimized and restored.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.8.x, 5.6.2, 5.12.0, 5.13.1
    • None
    • Windows 10, MinGW 5.3 / MSVC 2015 / MSVC 2017

    Description

      A maximized widget with Qt::Window flag is not correctly restored when parent window is minimized and restored back.

      Repro code:

      #include <QApplication>
      #include <QWidget>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QWidget parent;
          QWidget child(&parent, Qt::Window);
      
          parent.setWindowTitle("Parent");
          child.setWindowTitle("Child");
      
          parent.showMaximized();
          child.showMaximized();
      
          parent.setWindowState(Qt::WindowMinimized);
          parent.setWindowState(Qt::WindowMaximized);
      
          return a.exec();
      }
      

      The child should be restored to maximized state but is instead restored to normal state.

      Attachments

        1. qtbug53860_02.zip
          2 kB
        2. qtbug53860_log.txt
          1 kB
        3. qtbug53860.zip
          0.8 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              chrisaverage Krzysztof Kawa
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes