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

[REG 6.1.0->6.1.1] DragHandler inside Dialog does not work

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11, Windows
    • Commits:
      a9d571e847c6202991d8b26bd5663279a400418e b2cfc8f114f248cd58a409e67da8bdb5d5e48981 (qt/qtdeclarative/6.2)

      Description

      A DragHandler used inside of a Dialog does not work

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
      
          Dialog{
              id: dialog
              width: 500; height: 500
              Rectangle{
                  width: 400; height: 400;
                  Rectangle{
                      id: rect
                      color: "red"
                      width: 20;
                      height: 20;
                  }
                  DragHandler{
                      target: rect
                  }
              }
          }
          Button{
              text: "open Dialog"
              onClicked: dialog.open()
          }
      }
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              menzels2 Stefan Menzel
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes