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

QStyleOptionDockWidget does a cast to QDockWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • 5.4.0
    • 5.2.0
    • None
    • Windows 7
    • 5e6697bf2083e9f3490792ad100680598ba56998 (dev, 7.4.2014 ,5.4)

    Description

      On Windows, you are unable to draw a custom dock widget title, because the windows style does a cast to a QDockWidget first:
      (Line 1428 of qwindowsvistastyle.cpp)

          case CE_DockWidgetTitle:
              if (const QDockWidget *dockWidget = qobject_cast<const QDockWidget *>(widget))

      As it only does a cast to check if the widget is floating, it would make more sense to add "floating" as a boolean in the style option.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            dhrabovcak Daniel Hrabovcak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes