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

QDockWidgets do not dock correctly without animations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.2, 5.7.1
    • 5.6.1
    • Widgets: Main Window
    • None
    • Ubuntu 14.04 with Qt 5.6. Does not occur under Ubuntu 16.04. Does not occur with Qt < 5.6.
    • f54bd20f6afbbd7bcbc55b3f3f59ed15f91f8ecd

    Description

      Modify the Example widgets/mainwindows/dockwidgets to disable dock animations by adding to the MainWindow constructor:

      setDockOptions(QMainWindow::AllowNestedDocks | QMainWindow::AllowTabbedDocks);
      or even more simply:
      setDockOptions(QMainWindow::AllowTabbedDocks);

      Now it is not possible to re-arrange the dock widgets. They will snap back to their previous positions when trying to re-arrange them.

      Attachments

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

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            jr jr
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes