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

Details

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

    Description

      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);
            }
          }
      }
      

      Attachments

        1. main.py
          0.6 kB
        2. main2.qml
          3 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-97461
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes