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

QTapAndHoldGesture::position .> global vs. QTapGesture::position -> local

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.8
    • None

    Description

      While the documentation of both https://doc.qt.io/qt-5/qtapgesture.html#position-prop & https://doc.qt.io/qt-5/qtapandholdgesture.html#position-prop do not mention in which corrdinate system the position is, both just stating "This property holds the position of the tap" by try and error the one of QTapGesture is found to be local to the widget, while the one of QTapAndHoldGesture is global.

      This inconsistency is surprising,

      While changing the behaviour might be difficult (perhaps one could set a flag per widget though), this should be at least documented and made consistent on next occasion.

      While at it, having the gesture provide both global and local position as properties, like seen with QEvent subclasses, would be handy and provide more of the convenience seen with Qt API usually.

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kossebau Friedrich W. H. Kossebau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes