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

Unable to dock QDockWidget after making it floating, hidden, saveState, close/run program, restoreState, shown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.0.1
    • GUI: Window management
    • None
    • Win7 Home Premium x64, VS2010, Qt5.0.1 x64

    Description

      1. Have 2 docked QDockWidgets on a QMainWindow.
      2. Put restoreGeometry/restoreState in QMainWindow's constructor and saveGeometry/saveState in its closeEvent.
      3. Run the program, make one QDockWidget floating and hide it.
      4. Close the program.
      5. Run the program again.
      6. From the context menu on the widget header of the visible QDockWidget make the hidden QDockWidget visible. It'll be floating, ok.
      7. Try to dock the floating QDockWidget (by dragging it around or clicking on the titlebar). You'll fail.
      8. But setting programmatically

      ui.myDock->setFloating(false);

      will succeed.

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              shp Shp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes