PythonQt.QtGui.QSwipeGesture · declarations 001
Back to PythonQt.QtGui.QSwipeGesture
NoDirection
instance-attribute
NoDirection: Any
SwipeDirection
instance-attribute
SwipeDirection: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QSwipeGesture.destroyed; argument details are not documented.
horizontalDirection
instance-attribute
horizontalDirection: Any
Qt 5 reference:
horizontalDirection : const SwipeDirection
This property holds the horizontal direction of the gesture
If the gesture has a horizontal component, the horizontal direction is either Left or Right; otherwise, it is NoDirection.
Access functions:
| QSwipeGesture::SwipeDirection | horizontalDirection() const |
|---|---|
See also verticalDirection and swipeAngle.
Source: https://doc.qt.io/archives/qt-5.15/qswipegesture.html#horizontalDirection
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QSwipeGesture.objectNameChanged; argument details are not documented.
setSwipeAngle
setSwipeAngle(value: float) -> None
X.setSwipeAngle(value)
Upstream PySide2 reference signatures (binding differences may apply):
setSwipeAngle(self, value: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qswipegesture.html#setSwipeAngle
swipeAngle
instance-attribute
swipeAngle: float
Qt 5 reference:
swipeAngle : qreal
This property holds the angle of the motion associated with the gesture
If the gesture has either a horizontal or vertical component, the swipe angle describes the angle between the direction of motion and the x-axis as defined using the standard widget coordinate system.
Access functions:
| qreal | swipeAngle() const |
|---|---|
| void | setSwipeAngle(qreal value) |
See also horizontalDirection and verticalDirection.
Source: https://doc.qt.io/archives/qt-5.15/qswipegesture.html#swipeAngle
velocity
instance-attribute
velocity: Any
verticalDirection
instance-attribute
verticalDirection: Any
Qt 5 reference:
verticalDirection : const SwipeDirection
This property holds the vertical direction of the gesture
If the gesture has a vertical component, the vertical direction is either Up or Down; otherwise, it is NoDirection.
Access functions:
| QSwipeGesture::SwipeDirection | verticalDirection() const |
|---|---|
See also horizontalDirection and swipeAngle.
Source: https://doc.qt.io/archives/qt-5.15/qswipegesture.html#verticalDirection