setRect(x, y, w, h)
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class PySide6.QtQuick.QSGRectangleNode#
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.QSGRectangleNode.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