QSwipeGestureclass describes a swipe gesture made by the user. 更多 …
4.6 版新增。
def
horizontalDirection
()
def
setSwipeAngle
(value)
def
swipeAngle
()
def
verticalDirection
()
![]()
For an overview of gesture handling in Qt and information on using gestures in your applications, see the 在 Widget 和图形视图中的手势 文档。
另请参阅
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
(
)
¶
PySide2.QtWidgets.QSwipeGesture.
setSwipeAngle
(
value
)
¶
value
–
qreal
另请参阅
PySide2.QtWidgets.QSwipeGesture.
swipeAngle
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QSwipeGesture.
verticalDirection
(
)
¶