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

macOS: Setting Qt::WA_NativeWindow breaks dockwidget's behavior

    XMLWordPrintable

    Details

    • Platform/s:
      macOS

      Description

      Setting Qt::WA_NativeWindow on any main window sub-widget (QDockWidget contents, central widget) breaks QDockWidget undocking and docking behaviors.

      Problem 1 :

      • When the dockWidget is undocked, it immediately becomes unresponsive to drag mouse movement
      • When the mouse button is released the window then starts dragging

      Problem 2:

      • A floating dockWidget cannot be docked by dragging to the docking area.
      • It requires to click the docking area.

      How to reproduce :
      Use attached sample project qtbug93064.zip ( Setting attribute Qt::WA_NativeWindow to https://doc.qt.io/qt-5/qtwidgets-mainwindows-dockwidgets-example.html )

      • Uncomment any of "setAttribute( Qt::WA_NativeWindow, true);" in mainwindow.cpp
      • Try to undock and dock the windows

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              nagrohn Nahomi Gröhn
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes