Skip to content

PanGesture

Qt Base Class: QPanGesture

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

Base classes

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

⋔ Inheritance diagram

graph TD
  1473296378864["widgets.PanGesture"]
  1473296392528["widgets.GestureMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473293719472["QtWidgets.QPanGesture"]
  1473293749728["QtWidgets.QGesture"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473296392528 --> 1473296378864
  1473299815024 --> 1473296392528
  140713234304496 --> 1473299815024
  1473293719472 --> 1473296378864
  1473293749728 --> 1473293719472
  1473288842240 --> 1473293749728
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: GestureMixin, QPanGesture

Describes a panning gesture made by the user.

Source code in prettyqt\widgets\pangesture.py
class PanGesture(widgets.GestureMixin, widgets.QPanGesture):
    """Describes a panning gesture made by the user."""

    def get_delta(self) -> core.PointF:
        return core.PointF(self.delta())

    def get_last_offset(self) -> core.PointF:
        return core.PointF(self.lastOffset())

    def get_offset(self) -> core.PointF:
        return core.PointF(self.offset())

⌗ Property table

Qt Property Type Doc
objectName QString
state Qt::GestureState
gestureType Qt::GestureType
gestureCancelPolicy QGesture::GestureCancelPolicy
hotSpot QPointF
hasHotSpot bool
lastOffset QPointF
offset QPointF
delta QPointF
acceleration double
horizontalVelocity double
verticalVelocity double