QSGRectangleNode#
The QSGRectangleNode
class is a convenience class for drawing solid filled rectangles using scenegraph. More…
Synopsis#
Functions#
def
setRect
(x, y, w, h)
Virtual functions#
Note
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
Detailed Description#
- class PySide6.QtQuick.QSGRectangleNode#
- abstract PySide6.QtQuick.QSGRectangleNode.color()#
- Return type:
Returns the color of this rectangle.
See also
- abstract PySide6.QtQuick.QSGRectangleNode.rect()#
- Return type:
Returns the rectangle that this rect node covers.
See also
- abstract PySide6.QtQuick.QSGRectangleNode.setColor(color)#
- Parameters:
color –
PySide6.QtGui.QColor
Sets the color of this rectangle to color
. The default color will be white.
See also
- abstract PySide6.QtQuick.QSGRectangleNode.setRect(rect)#
- Parameters:
rect –
PySide6.QtCore.QRectF
Sets the rectangle of this rect node to rect
.
See also
- PySide6.QtQuick.QSGRectangleNode.setRect(x, y, w, h)
- Parameters:
x – float
y – float
w – float
h – float
This is an overloaded function.
Sets the rectangle of this rect node to begin at (x
, y
) and have width w
and height h
.