Skip to content

PythonQt.QtGui.QNativeGestureEvent · declarations 001

Back to PythonQt.QtGui.QNativeGestureEvent

gestureType

gestureType() -> Any

X.gestureType()

Supplemental documentation: Qt 5 reference:

Qt::NativeGestureType QNativeGestureEvent::gestureType() const

Returns the gesture type.

This function was introduced in Qt 5.2.

Upstream PySide2 reference signatures (binding differences may apply):

gestureType(self) -> PySide2.QtCore.Qt.NativeGestureType

Source: https://doc.qt.io/archives/qt-5.15/qnativegestureevent.html#gestureType

globalPos

globalPos() -> Any

X.globalPos() -> PythonQt.QtCore.QPoint

Supplemental documentation: Qt 5 reference:

const QPoint QNativeGestureEvent::globalPos() const

Returns the position of the gesture as a QPointF in screen coordinates

This function was introduced in Qt 5.2.

Upstream PySide2 reference signatures (binding differences may apply):

globalPos(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qnativegestureevent.html#globalPos

localPos

localPos() -> Any

X.localPos() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

const QPointF \&QNativeGestureEvent::localPos() const

Returns the position of the gesture as a QPointF, relative to the widget or item that received the event.

This function was introduced in Qt 5.2.

Upstream PySide2 reference signatures (binding differences may apply):

localPos(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qnativegestureevent.html#localPos

pos

pos() -> Any

X.pos() -> PythonQt.QtCore.QPoint

Supplemental documentation: Qt 5 reference:

const QPoint QNativeGestureEvent::pos() const

Returns the position of the mouse cursor, relative to the widget or item that received the event.

This function was introduced in Qt 5.2.

Upstream PySide2 reference signatures (binding differences may apply):

pos(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qnativegestureevent.html#pos

screenPos

screenPos() -> Any

X.screenPos() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

const QPointF \&QNativeGestureEvent::screenPos() const

Returns the position of the gesture as a QPointF in screen coordinates.

This function was introduced in Qt 5.2.

Upstream PySide2 reference signatures (binding differences may apply):

screenPos(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qnativegestureevent.html#screenPos

value

value() -> float

X.value() -> float

Supplemental documentation: Qt 5 reference:

qreal QNativeGestureEvent::value() const

Returns the gesture value. The value should be interpreted based on the gesture type. For example, a Zoom gesture provides a scale factor while a Rotate gesture provides a rotation delta.

This function was introduced in Qt 5.2.

See also QNativeGestureEvent and gestureType().

Upstream PySide2 reference signatures (binding differences may apply):

value(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qnativegestureevent.html#value

windowPos

windowPos() -> Any

X.windowPos() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

const QPointF \&QNativeGestureEvent::windowPos() const

Returns the position of the gesture as a QPointF, relative to the window that received the event.

This function was introduced in Qt 5.2.

Upstream PySide2 reference signatures (binding differences may apply):

windowPos(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qnativegestureevent.html#windowPos