Skip to content

TapAndHoldGesture

Base classes

Name Children Inherits
GestureMixin
prettyqt.widgets.gesture
QTapAndHoldGesture
PySide6.QtWidgets
QTapAndHoldGesture(self, /, parent: PySide6.QtCore.QObject | None \= None, *, position: PySide6.QtCore.QPointF | None \= None) -> None

⋔ Inheritance diagram

graph TD
  1596963906["widgets.TapAndHoldGesture"]
  2553044129["widgets.GestureMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  2255887242["QtWidgets.QTapAndHoldGesture"]
  4032894933["QtWidgets.QGesture"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  2553044129 --> 1596963906
  3227531497 --> 2553044129
  2751680898 --> 3227531497
  2751680898 --> 2553044129
  2255887242 --> 1596963906
  4032894933 --> 2255887242
  3984060476 --> 4032894933
  37984305 --> 3984060476
  2751680898 --> 37984305

🛈 DocStrings

Bases: GestureMixin, QTapAndHoldGesture

Source code in prettyqt/widgets/tapandholdgesture.py
4
5
6
class TapAndHoldGesture(widgets.GestureMixin, widgets.QTapAndHoldGesture):
    def get_position(self) -> core.PointF:
        return core.PointF(self.position())

:fa-brands-github: Show source on GitHub