The QSGRectangleNode class is a convenience class for drawing solid filled rectangles using scenegraph. More...
Header: | #include <QSGRectangleNode> |
qmake: | QT += quick |
Since: | Qt 5.8 |
Inherits: | QSGGeometryNode |
virtual | ~QSGRectangleNode() override |
virtual QColor | color() const = 0 |
virtual QRectF | rect() const = 0 |
virtual void | setColor(const QColor &color) = 0 |
virtual void | setRect(const QRectF &rect) = 0 |
void | setRect(qreal x, qreal y, qreal w, qreal h) |
The QSGRectangleNode class is a convenience class for drawing solid filled rectangles using scenegraph.
[override virtual]
QSGRectangleNode::~QSGRectangleNode()Destroys the instance of QSGRectangleNode. The destructor is virtual.
[pure virtual]
QColor QSGRectangleNode::color() constReturns the color of this rectangle.
See also setColor().
[pure virtual]
QRectF QSGRectangleNode::rect() constReturns the rectangle that this rect node covers.
See also setRect().
[pure virtual]
void QSGRectangleNode::setColor(const QColor &color)Sets the color of this rectangle to color. The default color will be white.
See also color().
[pure virtual]
void QSGRectangleNode::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.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: