内容表

上一话题

QStyledItemDelegate

下一话题

QSystemTrayIcon

QSwipeGesture

QSwipeGesture class describes a swipe gesture made by the user. 更多

Inheritance diagram of PySide2.QtWidgets.QSwipeGesture

4.6 版新增。

详细描述

../../_images/swipegesture.png

For an overview of gesture handling in Qt and information on using gestures in your applications, see the 在 Widget 和图形视图中的手势 文档。

class QSwipeGesture ( [ parent=None ] )
参数

parent QObject

PySide2.QtWidgets.QSwipeGesture. SwipeDirection

This enum describes the possible directions for the gesture’s motion along the horizontal and vertical axes.

常量

描述

QSwipeGesture.NoDirection

The gesture had no motion associated with it on a particular axis.

QSwipeGesture.Left

The gesture involved a horizontal motion to the left.

QSwipeGesture.Right

The gesture involved a horizontal motion to the right.

QSwipeGesture.Up

The gesture involved an upward vertical motion.

QSwipeGesture.Down

The gesture involved a downward vertical motion.

PySide2.QtWidgets.QSwipeGesture. horizontalDirection ( )
返回类型

SwipeDirection

PySide2.QtWidgets.QSwipeGesture. setSwipeAngle ( value )
参数

value qreal

另请参阅

swipeAngle()

PySide2.QtWidgets.QSwipeGesture. swipeAngle ( )
返回类型

qreal

另请参阅

setSwipeAngle()

PySide2.QtWidgets.QSwipeGesture. verticalDirection ( )
返回类型

SwipeDirection