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

QDockWidget Floating Inconsistency

    XMLWordPrintable

Details

    Description

      The default title bar for QDockWidget always hides itself when floating. If we use our own custom title bar it will always be visible even when floating. This behavior is rather inconsistent and in some cases not even preferred.

      I specifically would like to use the default title bar and have it visible when the dock widget is floating. I can not seem to achieve this because of the protection level of the setWindowState member in QDockWidgetPrivate which controls this behavior.
      http://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/widgets/qdockwidget.cpp#n1591

      In Visual Studio for instance native window borders are not shown on dock widgets when they are floating. I feel that a setting should be implemented to allow the default dock widget title bar to be visible when the dock widget is floating.

      To further illustrate my point the dock widgets do not use native window borders on Linux.

      Attachments

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

        Activity

          People

            bachewii Jens
            RobertBColton Robert B. Colton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes