QSGRectangleNode

The QSGRectangleNode class is a convenience class for drawing solid filled rectangles using scenegraph. More

Inheritance diagram of PySide6.QtQuick.QSGRectangleNode

Synopsis

Functions

Virtual functions

Detailed Description

class PySide6.QtQuick.QSGRectangleNode
PySide6.QtQuick.QSGRectangleNode.color()
Return type

PySide6.QtGui.QColor

Returns the color of this rectangle.

See also

setColor()

PySide6.QtQuick.QSGRectangleNode.rect()
Return type

PySide6.QtCore.QRectF

Returns the rectangle that this rect node covers.

See also

setRect()

PySide6.QtQuick.QSGRectangleNode.setColor(color)
Parameters

colorPySide6.QtGui.QColor

Sets the color of this rectangle to color. The default color will be white.

See also

color()

PySide6.QtQuick.QSGRectangleNode.setRect(rect)
Parameters

rectPySide6.QtCore.QRectF

Sets the rectangle of this rect node to rect.

See also

rect()

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.