Skip to content

TapGesture

Qt Base Class: QTapGesture

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

Base classes

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

⋔ Inheritance diagram

graph TD
  1473296393504["widgets.TapGesture"]
  1473296392528["widgets.GestureMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473293722400["QtWidgets.QTapGesture"]
  1473293749728["QtWidgets.QGesture"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473296392528 --> 1473296393504
  1473299815024 --> 1473296392528
  140713234304496 --> 1473299815024
  1473293722400 --> 1473296393504
  1473293749728 --> 1473293722400
  1473288842240 --> 1473293749728
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: GestureMixin, QTapGesture

Describes a tap gesture made by the user.

Source code in prettyqt\widgets\tapgesture.py
class TapGesture(widgets.GestureMixin, widgets.QTapGesture):
    """Describes a tap gesture made by the user."""

    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