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

Qt.MouseEventCreatedDoubleClick not set when using touch screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.8, 5.15.0
    • None
    • Microsoft Surface Pro 4 with Windows, Dell XPS with Ubuntu
    • Linux/X11, Windows

    Description

      Following code:

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          MouseArea {
              anchors.fill: parent
      
              onDoubleClicked: console.log('double click')
              onPressed: console.log('pressed, double:', mouse.flags)
              onReleased: console.log('released')
          }
      }
      

      Produces different output depending if mouse or touch screen is used:

      For mouse:

      qml: pressed, double: 0
      qml: released
      qml: pressed, double: 1
      qml: double click
      qml: released
      

      For touch screen:

      qml: pressed, double: 0
      qml: released
      qml: pressed, double: 0
      qml: double click
      qml: released

       

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            michalc Michał Cieślak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes