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

Make QMainWindows DockingAreas Scrollable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0
    • Widgets: Main Window
    • None
    • Windows

    Description

      Having a big list of QDockWidgets and adding them programatically to the QMainWindow results in extending the QMainWindows minimum size over the maximum size.
      In that case either the last widgets should be force stacked or a scrollbar should appear.

      I don't even know if this is currently possible by adding some custom event handlers, since the control over the Docking Areas is very limited.

      How to reproduce:

      1. Create a Qt Gui Application
      2. Create enough [empty with spacers] widgets to extend the size of the screen
      3. Add those to the QMainWindow programatically

      Outcome:

      A warning in the console appears:

      `Qt.Warning: QWindowsWindow::setGeometry: Unable to set geometry 1920x1256+0+23 (frame: 1936x1295-8-8) on QWidgetWindow/"MainWindowWindow" on "\\.\DISPLAY1". Resulting geometry: 1920x1137+0+23 (frame: 1936x1176-8-8) margins: 8, 31, 8, 8 minimum size: 1201x1256 MINMAX`

      Also the Dock widgets can't be shown, sometimes they are interleaving or visually stacked (not stacked in a stacked widget).

      Expectation:
      I would expect the area, in which the QDockWidgets are placed, is a QScrollArea, which then shows scrollbars.
      Alternatively, enogh widgets should be stacked so the minimum size does not violate the screens boundaries.

      Attachments

        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
            febbe Fabian Keßler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes