PythonQt.QtGui.QGraphicsRotation · declarations 001
Back to PythonQt.QtGui.QGraphicsRotation
angle
instance-attribute
angle: float
Qt 5 reference:
angle : qreal
This property holds the angle for clockwise rotation, in degrees.
The angle can be any real number; the default value is 0.0. A value of 180 will rotate 180 degrees, clockwise. If you provide a negative number, the item will be rotated counter-clockwise. Normally the rotation angle will be in the range (-360, 360), but you can also provide numbers outside of this range (e.g., a angle of 370 degrees gives the same result as 10 degrees). Setting the angle to NaN results in no rotation.
Access functions:
| qreal | angle() const |
|---|---|
| void | setAngle(qreal) |
Notifier signal:
| void | angleChanged() |
|---|---|
See also origin.
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#angle
angleChanged
angleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsRotation.angleChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QGraphicsRotation::angleChanged()
This signal is emitted whenever the angle has changed.
Note: Notifier signal for property angle.
See also QGraphicsRotation::angle.
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#angleChanged
applyTo
applyTo(matrix: Any) -> None
X.applyTo(matrix)
Supplemental documentation: Qt 5 reference:
[override virtual] void QGraphicsRotation::applyTo(QMatrix4x4 *matrix) const
Reimplements: QGraphicsTransform::applyTo(QMatrix4x4 *matrix) const.
Upstream PySide2 reference signatures (binding differences may apply):
applyTo(self, matrix: PySide2.QtGui.QMatrix4x4) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#applyTo
axis
instance-attribute
axis: QVector3D
Qt 5 reference:
axis : QVector3D
This property holds a rotation axis, specified by a vector in 3D space.
This can be any axis in 3D space. By default the axis is (0, 0, 1), which is aligned with the Z axis. If you provide another axis, QGraphicsRotation will provide a transformation that rotates around this axis. For example, if you would like to rotate an item around its X axis, you could pass (1, 0, 0) as the axis.
Access functions:
| QVector3D | axis() const |
|---|---|
| void | setAxis(const QVector3D \&axis) |
| void | setAxis(Qt::Axis axis) |
Notifier signal:
| void | axisChanged() |
|---|---|
See also QTransform and QGraphicsRotation::angle.
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#axis
axisChanged
axisChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsRotation.axisChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QGraphicsRotation::axisChanged()
This signal is emitted whenever the axis of the object changes.
Note: Notifier signal for property axis.
See also QGraphicsRotation::axis.
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#axisChanged
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsRotation.destroyed; argument details are not documented.
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsRotation.objectNameChanged; argument details are not documented.
origin
instance-attribute
origin: QVector3D
Qt 5 reference:
origin : QVector3D
This property holds the origin of the rotation in 3D space.
All rotations will be done relative to this point (i.e., this point will stay fixed, relative to the parent, when the item is rotated).
Access functions:
| QVector3D | origin() const |
|---|---|
| void | setOrigin(const QVector3D \&point) |
Notifier signal:
| void | originChanged() |
|---|---|
See also angle.
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#origin
originChanged
originChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsRotation.originChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QGraphicsRotation::originChanged()
This signal is emitted whenever the origin has changed.
Note: Notifier signal for property origin.
See also QGraphicsRotation::origin.
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#originChanged
setAngle
setAngle(arg__1: float) -> None
X.setAngle(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setAngle(self, arg__1: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#setAngle
setAxis
setAxis(axis: Any) -> None
X.setAxis(axis)
Supplemental documentation: Qt 5 reference:
void QGraphicsRotation::setAxis(Qt::Axis axis)
Convenience function to set the axis to axis.
Note: the Qt::YAxis rotation for QTransform is inverted from the correct mathematical rotation in 3D space. The QGraphicsRotation class implements a correct mathematical rotation. The following two sequences of code will perform the same transformation:
QTransform t;
t.rotate(45, Qt::YAxis);
QGraphicsRotation r;
r.setAxis(Qt::YAxis);
r.setAngle(-45);
Note: Setter function for property axis.
Upstream PySide2 reference signatures (binding differences may apply):
setAxis(self, axis: PySide2.QtCore.Qt.Axis) -> None
setAxis(self, axis: PySide2.QtGui.QVector3D) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#setAxis
setOrigin
setOrigin(point: Any) -> None
X.setOrigin(point)
Upstream PySide2 reference signatures (binding differences may apply):
setOrigin(self, point: PySide2.QtGui.QVector3D) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsrotation.html#setOrigin