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

Allow changing MouseArea long press duration

    XMLWordPrintable

Details

    • 17a1c12a4520c4ae756e7dd5c08b2386ef84673a

    Description

      Currently it's not possible to adjust the pressAndHold limit, except by writing your own handler for long press. QML example;

      MouseArea {
          anchors.fill: parent
          Timer {
              id: longpress
              interval: 5000
              onTriggered: {
                  console.log("handle long press here");
              }
          }
          onPressed: {
              longpress.restart();
          }
          onReleased: {
              longpress.stop();
          }
      }
      

      Attachments

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

        Activity

          People

            olivier.jg Olivier JG
            henrikhartz Henrik Hartz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes