PythonQt.QtGui.QGestureEvent · declarations 001
Back to PythonQt.QtGui.QGestureEvent
accept
accept(arg__1: Any) -> None
X.accept(arg__1)
Supplemental documentation: Qt 5 reference:
void QGestureEvent::accept(QGesture *gesture)
Sets the accept flag of the given gesture object, the equivalent of calling setAccepted(gesture, true).
Setting the accept flag indicates that the event receiver wants the gesture. Unwanted gestures may be propagated to the parent widget.
See also QGestureEvent::ignore().
void QGestureEvent::accept(Qt::GestureType gestureType)
Sets the accept flag of the given gestureType, the equivalent of calling setAccepted(gestureType, true).
Setting the accept flag indicates that the event receiver wants the gesture. Unwanted gestures may be propagated to the parent widget.
See also QGestureEvent::ignore().
Upstream PySide2 reference signatures (binding differences may apply):
accept(self) -> None
accept(self, arg__1: PySide2.QtCore.Qt.GestureType) -> None
accept(self, arg__1: PySide2.QtWidgets.QGesture) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#accept
activeGestures
activeGestures() -> tuple
X.activeGestures() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QGesture *> QGestureEvent::activeGestures() const
Returns a list of active (not canceled) gestures.
Upstream PySide2 reference signatures (binding differences may apply):
activeGestures(self) -> typing.List[PySide2.QtWidgets.QGesture]
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#activeGestures
canceledGestures
canceledGestures() -> tuple
X.canceledGestures() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QGesture *> QGestureEvent::canceledGestures() const
Returns a list of canceled gestures.
Upstream PySide2 reference signatures (binding differences may apply):
canceledGestures(self) -> typing.List[PySide2.QtWidgets.QGesture]
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#canceledGestures
gesture
gesture(type: Any) -> Any
X.gesture(type) -> PythonQt.QtGui.QGesture
Supplemental documentation: Qt 5 reference:
QGesture *QGestureEvent::gesture(Qt::GestureType type) const
Returns a gesture object by type.
Upstream PySide2 reference signatures (binding differences may apply):
gesture(self, type: PySide2.QtCore.Qt.GestureType) -> PySide2.QtWidgets.QGesture
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#gesture
gestures
gestures() -> tuple
X.gestures() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QGesture *> QGestureEvent::gestures() const
Returns all gestures that are delivered in the event.
Upstream PySide2 reference signatures (binding differences may apply):
gestures(self) -> typing.List[PySide2.QtWidgets.QGesture]
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#gestures
ignore
ignore(arg__1: Any) -> None
X.ignore(arg__1)
Supplemental documentation: Qt 5 reference:
void QGestureEvent::ignore(QGesture *gesture)
Clears the accept flag parameter of the given gesture object, the equivalent of calling setAccepted(gesture, false).
Clearing the accept flag indicates that the event receiver does not want the gesture. Unwanted gestures may be propagated to the parent widget.
See also QGestureEvent::accept().
void QGestureEvent::ignore(Qt::GestureType gestureType)
Clears the accept flag parameter of the given gestureType, the equivalent of calling setAccepted(gesture, false).
Clearing the accept flag indicates that the event receiver does not want the gesture. Unwanted gestures may be propagated to the parent widget.
See also QGestureEvent::accept().
Upstream PySide2 reference signatures (binding differences may apply):
ignore(self) -> None
ignore(self, arg__1: PySide2.QtCore.Qt.GestureType) -> None
ignore(self, arg__1: PySide2.QtWidgets.QGesture) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#ignore
isAccepted
isAccepted(arg__1: Any) -> bool
X.isAccepted(arg__1) -> bool
Supplemental documentation: Qt 5 reference:
bool QGestureEvent::isAccepted(QGesture *gesture) const
Returns true if the gesture is accepted; otherwise returns false.
bool QGestureEvent::isAccepted(Qt::GestureType gestureType) const
Returns true if the gesture of type gestureType is accepted; otherwise returns
false.
Upstream PySide2 reference signatures (binding differences may apply):
isAccepted(self) -> bool
isAccepted(self, arg__1: PySide2.QtCore.Qt.GestureType) -> bool
isAccepted(self, arg__1: PySide2.QtWidgets.QGesture) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#isAccepted
mapToGraphicsScene
mapToGraphicsScene(gesturePoint: Any) -> Any
X.mapToGraphicsScene(gesturePoint) -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF QGestureEvent::mapToGraphicsScene(const QPointF \&gesturePoint) const
Returns the scene-local coordinates if the gesturePoint is inside a graphics view.
This functional might be useful when the gesture event is delivered to a QGraphicsObject to translate a point in screen coordinates to scene-local coordinates.
See also QPointF::isNull().
Upstream PySide2 reference signatures (binding differences may apply):
mapToGraphicsScene(self, gesturePoint: PySide2.QtCore.QPointF) -> PySide2.QtCore.QPointF
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#mapToGraphicsScene
setAccepted
setAccepted(arg__1: Any, arg__2: Any) -> None
X.setAccepted(arg__1, arg__2)
Supplemental documentation: Qt 5 reference:
void QGestureEvent::setAccepted(QGesture *gesture, bool value)
Sets the accept flag of the given gesture object to the specified value.
Setting the accept flag indicates that the event receiver wants the gesture. Unwanted gestures may be propagated to the parent widget.
By default, gestures in events of type QEvent::Gesture are accepted, and gestures in QEvent::GestureOverride events are ignored.
For convenience, the accept flag can also be set with accept(gesture), and cleared with ignore(gesture).
See also isAccepted().
void QGestureEvent::setAccepted(Qt::GestureType gestureType, bool value)
Sets the accept flag of the given gestureType object to the specified value.
Setting the accept flag indicates that the event receiver wants to receive gestures of the specified type, gestureType. Unwanted gestures may be propagated to the parent widget.
By default, gestures in events of type QEvent::Gesture are accepted, and gestures in QEvent::GestureOverride events are ignored.
For convenience, the accept flag can also be set with accept(gestureType), and cleared with ignore(gestureType).
Upstream PySide2 reference signatures (binding differences may apply):
setAccepted(self, accepted: bool) -> None
setAccepted(self, arg__1: PySide2.QtCore.Qt.GestureType, arg__2: bool) -> None
setAccepted(self, arg__1: PySide2.QtWidgets.QGesture, arg__2: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#setAccepted
setWidget
setWidget(widget: Any) -> None
X.setWidget(widget)
Upstream PySide2 reference signatures (binding differences may apply):
setWidget(self, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#setWidget
widget
widget() -> Any
X.widget() -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QGestureEvent::widget() const
Returns the widget on which the event occurred.
Upstream PySide2 reference signatures (binding differences may apply):
widget(self) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qgestureevent.html#widget