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

Qt.MouseEventCreatedDoubleClick not set when using touch screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.8, 5.15.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Microsoft Surface Pro 4 with Windows, Dell XPS with Ubuntu
    • Platform/s:
      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

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            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