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

DragHandler: need the ability to start dragging after a long press

    XMLWordPrintable

Details

    Description

      This is important to the KDE Plasma Desktop project.

      Ordinarily, TapHandler detects the long press. But in order for DragHandler to start dragging right away without waiting for the drag threshold to be exceeded, it would need an imperative (JS) API like startDragging() or some such; so it seems less ugly to add the long press detection to DragHandler, so that dragging can be initiated either way (by exceeding the drag threshold or by long press); and it should somehow be configurable, because in UIs which need to initiate drag via long press, sometimes it's not appropriate to allow initiating it by dragging past the threshold.

      Attachments

        1. longpress_and_drag.qml
          0.9 kB
          Jan Arve
        2. rubberbandLongPressAndDrag.qml
          2 kB
          Shawn Rutledge

        Issue Links

          For Gerrit Dashboard: QTBUG-68075
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              srutledg Shawn Rutledge
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes