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

Docks tabbed together outside of main window don't display window title correctly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.2, 5.7.1
    • 5.6.0
    • Widgets: Main Window
    • None
    • 0c44f26fae4d3ee493d8669b2ae1ea525e71c953

      Steps to reproduce:

      Create QMainWindow and set QMainWindow::GroupedDragging option.
      Create two docks: A and B. Take them out of main window and tab together.
      Switch to tab B. The window title changes to B (correct).
      Press the windows's "X" button to close tab B.
      The window title of B remains , although A tab is the current one and tab B is closed.
      The expected behavior is that the title changes to A when B is closed.

      Example code:

      #include <QApplication>
      #include <QMainWindow>
      #include <QDockWidget>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QMainWindow w;
          w.setDockOptions(QMainWindow::GroupedDragging);
          w.addDockWidget(Qt::LeftDockWidgetArea, new QDockWidget("A"));
          w.addDockWidget(Qt::RightDockWidgetArea, new QDockWidget("B"));
          w.show();
      
          return a.exec();
      }
      

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

            ogoffart Olivier Goffart (Woboq GmbH)
            chrisaverage Krzysztof Kawa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes