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

Android QtQuick1 MouseArea PressAndHold not working properly

    XMLWordPrintable

Details

    • Android
    • 425af59f534ed8a0f4bc7a77a1f83e4d1e2e2bdc

    Description

      PressAndHold signal does not reach MouseArea on Android.

      In QtQuick1 module src/declarative/graphicsitems/qdeclarativemousearea.cpp by pressing event starts the timer with 800 ms timeout (if there is an connected handler for PressAndHold signal). By triggering the timer the appropriated signal emits.

      However, the timer never triggered because after 700 ms from the android plugin coming events MouseReleased and MouseClicked.

      Also:
      QML MouseArea Element contain property wasHeld : bool
      In the doc we can read: "This property is true if the mouse button has been held pressed longer the threshold (800ms)."
      This property has not working properly as well.

      In our program, we were caught this event by tracking button property in MouseEvent (in the case of PressAndHold clicked event is sent with a button property Qt.NoButton). I would like to understand whether this workaround will work after fix this bug.

      In the attachments you can found the simple QML project with a one QML file and only one MouseArea (with appropriate handlers) in it.

      Attachments

        Issue Links

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

          Activity

            People

              tvete Paul Olav Tvete
              lkanevsky Vit Kanevsky
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes