PythonQt.QtGui.QGesture · declarations 001
Back to PythonQt.QtGui.QGesture
CancelAllInContext
instance-attribute
CancelAllInContext: Any
CancelNone
instance-attribute
CancelNone: Any
GestureCancelPolicy
instance-attribute
GestureCancelPolicy: 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.QGesture.destroyed; argument details are not documented.
gestureCancelPolicy
instance-attribute
gestureCancelPolicy: Any
Qt 5 reference:
gestureCancelPolicy : QGesture::GestureCancelPolicy
This property holds the policy for deciding what happens on accepting a gesture
On accepting one gesture Qt can automatically cancel other gestures that belong to other targets. The policy is normally set to not cancel any other gestures and can be set to cancel all active gestures in the context. For example for all child widgets.
Access functions:
| QGesture::GestureCancelPolicy | gestureCancelPolicy() const |
|---|---|
| void | setGestureCancelPolicy(QGesture::GestureCancelPolicy policy) |
Source: https://doc.qt.io/archives/qt-5.15/qgesture.html#gestureCancelPolicy
gestureType
instance-attribute
gestureType: Any
Qt 5 reference:
gestureType : const Qt::GestureType
This property holds the type of the gesture
Access functions:
| Qt::GestureType | gestureType() const |
|---|---|
Source: https://doc.qt.io/archives/qt-5.15/qgesture.html#gestureType
hasHotSpot
instance-attribute
hasHotSpot: bool
Qt 5 reference:
hasHotSpot : const bool
This property holds whether the gesture has a hot-spot
Access functions:
| bool | hasHotSpot() const |
|---|---|
Source: https://doc.qt.io/archives/qt-5.15/qgesture.html#hasHotSpot
hotSpot
instance-attribute
hotSpot: QPointF
Qt 5 reference:
hotSpot : QPointF
This property holds the point that is used to find the receiver for the gesture event.
The hot-spot is a point in the global coordinate system, use QWidget::mapFromGlobal() or QGestureEvent::mapToGraphicsScene() to get a local hot-spot.
The hot-spot should be set by the gesture recognizer to allow gesture event delivery to a QGraphicsObject.
Access functions:
| QPointF | hotSpot() const |
|---|---|
| void | setHotSpot(const QPointF \&value) |
| void | unsetHotSpot() |
Source: https://doc.qt.io/archives/qt-5.15/qgesture.html#hotSpot
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGesture.objectNameChanged; argument details are not documented.
setGestureCancelPolicy
setGestureCancelPolicy(policy: Any) -> None
X.setGestureCancelPolicy(policy)
Upstream PySide2 reference signatures (binding differences may apply):
setGestureCancelPolicy(self, policy: PySide2.QtWidgets.QGesture.GestureCancelPolicy) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgesture.html#setGestureCancelPolicy
setHotSpot
setHotSpot(value: Any) -> None
X.setHotSpot(value)
Upstream PySide2 reference signatures (binding differences may apply):
setHotSpot(self, value: PySide2.QtCore.QPointF) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgesture.html#setHotSpot
state
instance-attribute
state: Any
Qt 5 reference:
state : const Qt::GestureState
This property holds the current state of the gesture
Access functions:
| Qt::GestureState | state() const |
|---|---|
Source: https://doc.qt.io/archives/qt-5.15/qgesture.html#state
unsetHotSpot
unsetHotSpot() -> None
X.unsetHotSpot()
Upstream PySide2 reference signatures (binding differences may apply):
unsetHotSpot(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgesture.html#unsetHotSpot