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

[Reg 6.2 -> 6.5+] Minimizing + Restoring QMainWindow should not restore a hidden QDockWidget

XMLWordPrintable

      Code

      #include <QtWidgets>
      
      int main(int argc, char* argv[])
      {
          QApplication app(argc, argv);
      
          QMainWindow mw;
          mw.addDockWidget(Qt::LeftDockWidgetArea, new QDockWidget);
          mw.setCentralWidget(new QWidget);
          mw.show();
      
          return app.exec();
      }
      

       

      Steps to reproduce

      1. Build and run the code above
      2. Close/hide the dock widget by clicking its 'X' button
      3. Minimize the top-level window
      4. Restore the top-level window

       

      Expected outcomes (Qt 6.2.11, 6.6.1)
      The dock widget remains hidden

       

      Actual outcomes (Qt 6.5.4, 6.7.0b2)
      The dock widget is restored

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

            axelspoerl Axel Spoerl
            skoh-qt Sze Howe Koh
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes