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

DragHandler doesn't work in Qt Quick Dialog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.2.1, 6.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Qt 6.2.1 (Linux Wayland)
    • Platform/s:
      All

      Description

      The following code works with Qt 5.15.2 but doesn't work with Qt 6.2.1

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Controls 2.15
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
      
          Dialog{
              id: dialog
              width: 400; height: 400
              Rectangle{
                  anchors.fill: parent
                  Rectangle{
                      id: rect
                      color: "red"
                      width: 20;
                      height: 20;
                  }
                  DragHandler{
                      target: rect
                  }
              }
          }
          Component.onCompleted: dialog.open()
      }
      

      It seems like the DragHandler is unable to receive the input events inside the Dialog.

        Attachments

        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:
            daljit97 Daljit Singh
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes