The QSGSimpleRectNode class is a convenience class for drawing solid filled rectangles using scenegraph. More...
|qmake:||QT += quick|
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
|QSGSimpleRectNode(const QRectF &rect, const QColor &color)|
|void||setColor(const QColor &color)|
|void||setRect(const QRectF &rect)|
|void||setRect(qreal x, qreal y, qreal w, qreal h)|
Member Function Documentation
Constructs a QSGSimpleRectNode instance with an empty rectangle and white color.
Constructs a QSGSimpleRectNode instance which is spanning rect with the color color.
QColor QSGSimpleRectNode::color() const
Returns the color of this rectangle.
See also setColor().
QRectF QSGSimpleRectNode::rect() const
Returns the rectangle that this rect node covers.
See also setRect().
void QSGSimpleRectNode::setColor(const QColor &color)
Sets the color of this rectangle to color. The default color will be white.
See also color().
void QSGSimpleRectNode::setRect(const QRectF &rect)
Sets the rectangle of this rect node to rect.
See also rect().
This is an overloaded function.
Sets the rectangle of this rect node to begin at (x, y) and have width w and height h.
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.