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

onClicked is called if MouseArea contains both onClicked and onPressAndHold and only onPressAndHold should be called.

    XMLWordPrintable

Details

    • 198377b456c494272e9a73a872478c5d5ae94af4

    Description

      If having the following code in a QML item and user pressed and holds over the 800ms onClicked will also be called when user releases the mouse. In my understanding only the onPressAndHold should be called.
      ...
      MouseArea{
      anchors.fill: parent
      onClicked:

      { console.log("onClicked"); }


      onPressAndHold:

      { console.log("onPressAndHold"); }

      }
      ...

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            zchydem Marko Mattila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes