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

Drawer blocks events for elements under dragMargin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.9.1
    • Quick: Controls 2
    • None
    • Android, Ubuntu 16.04, Qt 5.9.1 with PyQt

    Description

      If I have a dragMargin of 25 and the Drawer's edge is on the left then I get no click events if I click on any part of any element that is on the left 25 pixels (on the X axis).

      This example shows that clicking on the left side of the red rectangle produces no logs, clicking on the right side things work.

       

      import QtQuick.Layouts 1.0
      import QtQuick.Controls 2.1
      import Qt.labs.platform 1.0
      import QtQuick.Dialogs 1.2
      
      ApplicationWindow {
       id: appWindow
      
       visible: true
       title: "test"
      
       Rectangle {
        width: 50
        height: 50
        color: "red"
      
         MouseArea {
          anchors.fill: parent
          onClicked: console.log("clicked")
         }
       }
      
       Drawer {
        width: appWindow.width * 0.5
        height: appWindow.height
        dragMargin: 25
        edge: Qt.LeftEdge
       }
      }
      
      

       

      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
              kviktor kviktor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes