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

Button press in ListView is canceled after moving a tiny bit

    XMLWordPrintable

Details

    Description

      I try to click a button and if I move even a tiny bit cancel is emitted instead of clicked.

      I would only expect it to emit canceled if my touch left the button, which it didn't.

      This was working until 5.7.0 RC.

      import QtQuick 2.6
      import QtQuick.Layouts 1.3
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.0
      import QtQuick.Controls.Material 2.0
      
      ApplicationWindow {
      	id: window
      	visible: true
      	width: 640
      	height: 480
      	
      	Drawer {
      		edge: Qt.RightEdge
      		clip: false
      		height: window.height
      		width: 512
      		
      		contentItem: Pane {
      			Button {
      				width: 400
      				height: 200
      				anchors.centerIn: parent
      				text: "Test"
      				onCanceled: console.log("canceled")
      			}
      		}
      	}
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              thomasbrix Thomas Brix
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes