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

[REG 5.15.2->6.2] DragHandler does not work when there's a Drawer in the application

XMLWordPrintable

    • Android, macOS
    • a9d571e847c6202991d8b26bd5663279a400418e (qt/qtdeclarative/dev) b2cfc8f114f248cd58a409e67da8bdb5d5e48981 (qt/qtdeclarative/6.2)

      DragHandler does not get events when there is a Drawer somewhere in a QML application.

      The Drawer affects the DragHandler independently if the Drawer is opened or not.

      Here is a sample code to reproduce the problem:

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Window
      
      ApplicationWindow {
          width: 600
          height: 400
      
          visible: true
      
          title: "Drag Handler Test"
      
          // if you remove the Drawer, the DragHandler starts to print the logs
          Drawer {
            width: 30
            height: 30
          }
      
          DragHandler {
            target: null
            onActiveChanged: {
              console.log("onActiveChanged = ", active);
            }
          }
      }
      

        1. main2.qml
          3 kB
        2. main.py
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            fabiankosmale Fabian Kosmale
            gbkoerich George Broering Koerich
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes