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

dragThreshold of Flickable not taken into account with programmtically sent QMouseEvents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • None

    Description

      When dragging a Flickable it normally requires the user to cross the dragThreshold until the contents actually move. This works fine with a mouse or on a touchscreen, but if QMouseEvents are sent programmatically via QCoreApplication::sendEvent(window, event) then the contents are moved directly, without taking the threshold into account.

      See the attachment for a reduced example of this behavior. Can be built and run via

      cmake --preset debug && cmake --build --preset debug && ./build/debug/Test

      Click on the "start" button to see the contents move a bit less than one red bar.  Trying to drag the distance of just one red bar is not possible here by using the mouse/touchscreen.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            c.geist Christoph Geist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes