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.