The QSGSimpleRectNode class is a convenience class for drawing solid filled rectangles using scenegraph. More...
|CMake:||find_package(Qt6 REQUIRED COMPONENTS Quick)
target_link_libraries(mytarget PRIVATE Qt6::Quick)
|qmake:||QT += quick|
|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)|
Warning: This utility class is only functional when running with the default or software backends of the Qt Quick scenegraph. As an alternative, prefer using QSGRectangleNode via QQuickWindow::createRectangleNode(). However, this standalone class is still useful when used via subclassing and the application knows that no special scenegraph backends will be involved.
Constructs a QSGSimpleRectNode instance with an empty rectangle and white color.
Constructs a QSGSimpleRectNode instance which is spanning rect with the color 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.
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: