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

QML MouseArea::onDoubleClicked works occasionally

    XMLWordPrintable

Details

    • Android

    Description

      I use MouseArea::onDoubleClicked in simple structure:

      Item {
          id: lItem
          visible: true
          signal sendDoubClick(int index)
          ...
          ListView {
              id: lView
              model: someModel
              anchors.fill: parent
              ...
              delegate: Rectangle {
                  id: listItem
                  width: lView.width
                  height: 200
                  function select(){ some selection code }
                  ...
                  MouseArea {
                      id: tapArea
                      z: -1
                      anchors.fill: parent
                      onDoubleClicked: lItem.sendDoubClick( index )
                      onClicked: listItem.select()
                  }
              }
          }
      }
      

      With Qt 5.9.6 all worked perfectly. But with Qt 5.12.5 I often have double tap many times to force emit lItem.sendDoubClick( index ). Or sometimes it works immediately. This is unpredictable.

      PS: In application build for desktop Kubuntu 18.04 LTS the onDoubleClicked works fine. Problem persists only in Android.

      Attachments

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes