Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!
|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)|
The QSGSimpleRectNode class is a convenience class for drawing solid filled rectangles using scenegraph.
Warning: This utility class is only functional when running with the OpenGL or software backends of the Qt Quick scenegraph. For a proper cross-platform alternative prefer using QSGRectangleNode via QQuickWindow::createRectangleNode() or QSGEngine::createRectangleNode().
Constructs a QSGSimpleRectNode instance which is spanning rect with the color color.
Constructs a QSGSimpleRectNode instance with an empty rectangle and white color.
Returns the color of this rectangle.
See also setColor().
Returns the rectangle that this rect node covers.
See also setRect().
Sets the color of this rectangle to color. The default color will be white.
See also color().
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.