QSGRectangleNode Class▲
-
Header: QSGRectangleNode
-
Since: Qt 5.8
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Quick)
target_link_libraries(mytarget PRIVATE Qt6::Quick)
-
qmake: QT += quick
-
Inherits: QSGGeometryNode
-
Inherited By:
Detailed Description▲
Member Function Documentation▲
[pure virtual] QColor QSGRectangleNode::color() const▲
[pure virtual] QRectF QSGRectangleNode::rect() const▲
[pure virtual] void QSGRectangleNode::setColor(const QColor &color)▲
Sets the color of this rectangle to color. The default color will be white.
See Also▲
See also color()
[pure virtual] void QSGRectangleNode::setRect(const QRectF &rect)▲
void QSGRectangleNode::setRect(qreal x, qreal y, qreal w, qreal h)▲
This is an overloaded function.
Sets the rectangle of this rect node to begin at (x, y) and have width w and height h.