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

Floating QDockWidget cannot be dragged on Wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.2, 6.9.0
    • None
    • Linux/Wayland

    Description

      1) Boot a Fedora 41 Workstation Live ISO
      2) sudo dnf install python-pyqt6
      3) Save and run:

      #!/usr/bin/python
      
      import sys
      
      from PyQt6.QtCore import Qt
      from PyQt6.QtWidgets import *
      
      class MainWindow(QMainWindow):
          def __init__(self):
              super().__init__()
              self.setGeometry(0, 0, 400, 400)
              dockWidget = QDockWidget()
              dockWidget.setWindowTitle("Dock Widget")
              self.addDockWidget(Qt.DockWidgetArea.LeftDockWidgetArea, dockWidget)
      
      app = QApplication(sys.argv)
      dialog = MainWindow()
      dialog.show()
      app.exec()
      

      4) Undock the widget "Dock Widget"
      5) Use the mouse to click and hold on the "Dock Widget" titlebar and attempt to drag

      written to stderr:
      "This plugin supports grabbing the mouse only for popup windows"

      Also seen with Qt 6.9.0 on Gentoo Linux, where the "not-allowed" cursor is displayed.

      Other problems:
       dragging from the top left corner resizes from the bottom right
       dragging from the left edge resizes from the right
       dragging from the top edge resizes from the bottom

       

      Attachments

        Issue Links

          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
              cjm Chris Mayo
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes