Skip to content

PythonQt.QtGui.QPinchGesture · declarations 001

Back to PythonQt.QtGui.QPinchGesture

CenterPointChanged instance-attribute

CenterPointChanged: Any

RotationAngleChanged instance-attribute

RotationAngleChanged: Any

ScaleFactorChanged instance-attribute

ScaleFactorChanged: Any

centerPoint instance-attribute

centerPoint: QPointF

Qt 5 reference:

centerPoint : QPointF

This property holds the current center point

The center point is the midpoint between the two input points in the gesture.

Access functions:

QPointF centerPoint() const
void setCenterPoint(const QPointF \&value)

See also startCenterPoint and lastCenterPoint.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#centerPoint

changeFlags instance-attribute

changeFlags: Any

Qt 5 reference:

changeFlags : ChangeFlags

This property holds the property of the gesture that has changed in the current step

This property indicates which of the other properties has changed since the previous gesture event included information about this gesture. You can use this information to determine which aspect of your user interface needs to be updated.

Access functions:

QPinchGesture::ChangeFlags changeFlags() const
void setChangeFlags(QPinchGesture::ChangeFlags value)

See also totalChangeFlags, scaleFactor, rotationAngle, and centerPoint.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#changeFlags

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPinchGesture.destroyed; argument details are not documented.

lastCenterPoint instance-attribute

lastCenterPoint: QPointF

Qt 5 reference:

lastCenterPoint : QPointF

This property holds the last position of the center point recorded for this gesture

Access functions:

QPointF lastCenterPoint() const
void setLastCenterPoint(const QPointF \&value)

See also centerPoint and startCenterPoint.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#lastCenterPoint

lastRotationAngle instance-attribute

lastRotationAngle: float

Qt 5 reference:

lastRotationAngle : qreal

This property holds the last reported angle covered by the gesture motion

The last rotation angle is the angle as reported in the rotationAngle property when a previous gesture event was delivered for this gesture.

Access functions:

qreal lastRotationAngle() const
void setLastRotationAngle(qreal value)

See also rotationAngle and totalRotationAngle.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#lastRotationAngle

lastScaleFactor instance-attribute

lastScaleFactor: float

Qt 5 reference:

lastScaleFactor : qreal

This property holds the last scale factor recorded for this gesture

The last scale factor contains the scale factor reported in the scaleFactor property when a previous gesture event included information about this gesture.

If no previous event was delivered with information about this gesture (i.e., this gesture object contains information about the first movement in the gesture) then this property contains zero.

Access functions:

qreal lastScaleFactor() const
void setLastScaleFactor(qreal value)

See also scaleFactor and totalScaleFactor.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#lastScaleFactor

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QPinchGesture.objectNameChanged; argument details are not documented.

rotationAngle instance-attribute

rotationAngle: float

Qt 5 reference:

rotationAngle : qreal

This property holds the angle covered by the gesture motion

Access functions:

qreal rotationAngle() const
void setRotationAngle(qreal value)

See also totalRotationAngle and lastRotationAngle.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#rotationAngle

scaleFactor instance-attribute

scaleFactor: float

Qt 5 reference:

scaleFactor : qreal

This property holds the current scale factor

The scale factor measures the scale factor associated with the distance between two of the user's inputs on a touch device.

Access functions:

qreal scaleFactor() const
void setScaleFactor(qreal value)

See also totalScaleFactor and lastScaleFactor.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#scaleFactor

setCenterPoint

setCenterPoint(value: Any) -> None

X.setCenterPoint(value)

Upstream PySide2 reference signatures (binding differences may apply):

setCenterPoint(self, value: PySide2.QtCore.QPointF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setCenterPoint

setChangeFlags

setChangeFlags(value: Any) -> None

X.setChangeFlags(value)

Upstream PySide2 reference signatures (binding differences may apply):

setChangeFlags(self, value: PySide2.QtWidgets.QPinchGesture.ChangeFlags) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setChangeFlags

setLastCenterPoint

setLastCenterPoint(value: Any) -> None

X.setLastCenterPoint(value)

Upstream PySide2 reference signatures (binding differences may apply):

setLastCenterPoint(self, value: PySide2.QtCore.QPointF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setLastCenterPoint

setLastRotationAngle

setLastRotationAngle(value: float) -> None

X.setLastRotationAngle(value)

Upstream PySide2 reference signatures (binding differences may apply):

setLastRotationAngle(self, value: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setLastRotationAngle

setLastScaleFactor

setLastScaleFactor(value: float) -> None

X.setLastScaleFactor(value)

Upstream PySide2 reference signatures (binding differences may apply):

setLastScaleFactor(self, value: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setLastScaleFactor

setRotationAngle

setRotationAngle(value: float) -> None

X.setRotationAngle(value)

Upstream PySide2 reference signatures (binding differences may apply):

setRotationAngle(self, value: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setRotationAngle

setScaleFactor

setScaleFactor(value: float) -> None

X.setScaleFactor(value)

Upstream PySide2 reference signatures (binding differences may apply):

setScaleFactor(self, value: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setScaleFactor

setStartCenterPoint

setStartCenterPoint(value: Any) -> None

X.setStartCenterPoint(value)

Upstream PySide2 reference signatures (binding differences may apply):

setStartCenterPoint(self, value: PySide2.QtCore.QPointF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setStartCenterPoint

setTotalChangeFlags

setTotalChangeFlags(value: Any) -> None

X.setTotalChangeFlags(value)

Upstream PySide2 reference signatures (binding differences may apply):

setTotalChangeFlags(self, value: PySide2.QtWidgets.QPinchGesture.ChangeFlags) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setTotalChangeFlags

setTotalRotationAngle

setTotalRotationAngle(value: float) -> None

X.setTotalRotationAngle(value)

Upstream PySide2 reference signatures (binding differences may apply):

setTotalRotationAngle(self, value: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setTotalRotationAngle

setTotalScaleFactor

setTotalScaleFactor(value: float) -> None

X.setTotalScaleFactor(value)

Upstream PySide2 reference signatures (binding differences may apply):

setTotalScaleFactor(self, value: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#setTotalScaleFactor

startCenterPoint instance-attribute

startCenterPoint: QPointF

Qt 5 reference:

startCenterPoint : QPointF

This property holds the starting position of the center point

Access functions:

QPointF startCenterPoint() const
void setStartCenterPoint(const QPointF \&value)

See also centerPoint and lastCenterPoint.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#startCenterPoint

totalChangeFlags instance-attribute

totalChangeFlags: Any

Qt 5 reference:

totalChangeFlags : ChangeFlags

This property holds the property of the gesture that has change

This property indicates which of the other properties has changed since the gesture has started. You can use this information to determine which aspect of your user interface needs to be updated.

Access functions:

QPinchGesture::ChangeFlags totalChangeFlags() const
void setTotalChangeFlags(QPinchGesture::ChangeFlags value)

See also changeFlags, scaleFactor, rotationAngle, and centerPoint.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#totalChangeFlags

totalRotationAngle instance-attribute

totalRotationAngle: float

Qt 5 reference:

totalRotationAngle : qreal

This property holds the total angle covered by the gesture

This total angle measures the complete angle covered by the gesture. Usually, this is equal to the value held by the rotationAngle property, except in the case where the user performs multiple rotations by removing and repositioning one of the touch points, as described above. In this case, the total angle will be the sum of the rotation angles for the multiple stages of the gesture.

Access functions:

qreal totalRotationAngle() const
void setTotalRotationAngle(qreal value)

See also rotationAngle and lastRotationAngle.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#totalRotationAngle

totalScaleFactor instance-attribute

totalScaleFactor: float

Qt 5 reference:

totalScaleFactor : qreal

This property holds the total scale factor

The total scale factor measures the total change in scale factor from the original value to the current scale factor.

Access functions:

qreal totalScaleFactor() const
void setTotalScaleFactor(qreal value)

See also scaleFactor and lastScaleFactor.

Source: https://doc.qt.io/archives/qt-5.15/qpinchgesture.html#totalScaleFactor