This utility class is only functional when running with the default or software backends of the Qt Quick scenegraph. As an alternative, prefer using
createRectangleNode() . However, this standalone class is still useful when used via subclassing and the application knows that no special scenegraph backends will be involved.
- class PySide6.QtQuick.QSGSimpleRectNode#
QSGSimpleRectNode instance with an empty rectangle and white color.
QSGSimpleRectNode instance which is spanning
rect with the color
Returns the color of this rectangle.
Returns the rectangle that this rect node covers.
Sets the color of this rectangle to
color. The default color will be white.
Sets the rectangle of this rect node to
- PySide6.QtQuick.QSGSimpleRectNode.setRect(x, y, w, h)
x – float
y – float
w – float
h – float
This is an overloaded function.
Sets the rectangle of this rect node to begin at (
y) and have width
w and height