Skip to content

TapAndHoldGesture

Qt Base Class: QTapAndHoldGesture

Signature: QTapAndHoldGesture(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
GestureMixin
prettyqt.widgets.gesture
QTapAndHoldGesture
PySide6.QtWidgets
QTapAndHoldGesture(self, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473296395456["widgets.TapAndHoldGesture"]
  1473296392528["widgets.GestureMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473293746800["QtWidgets.QTapAndHoldGesture"]
  1473293749728["QtWidgets.QGesture"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473296392528 --> 1473296395456
  1473299815024 --> 1473296392528
  140713234304496 --> 1473299815024
  1473293746800 --> 1473296395456
  1473293749728 --> 1473293746800
  1473288842240 --> 1473293749728
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: GestureMixin, QTapAndHoldGesture

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

⌗ Property table

Qt Property Type Doc
objectName QString
state Qt::GestureState
gestureType Qt::GestureType
gestureCancelPolicy QGesture::GestureCancelPolicy
hotSpot QPointF
hasHotSpot bool
position QPointF