QSGRectangleNode Class
Die Klasse QSGRectangleNode ist eine Komfortklasse zum Zeichnen von gefüllten Rechtecken mit Scenegraph. Mehr...
Kopfzeile: | #include <QSGRectangleNode> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
Vererbt: | QSGGeometryNode |
Öffentliche Funktionen
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) |
Dokumentation der Mitgliedsfunktionen
[pure virtual]
QColor QSGRectangleNode::color() const
Gibt die Farbe dieses Rechtecks zurück.
Siehe auch setColor().
[pure virtual]
QRectF QSGRectangleNode::rect() const
Gibt das Rechteck zurück, das dieser Rect-Knoten abdeckt.
Siehe auch setRect().
[pure virtual]
void QSGRectangleNode::setColor(const QColor &color)
Setzt die Farbe dieses Rechtecks auf color. Die Standardfarbe ist weiß.
Siehe auch color().
[pure virtual]
void QSGRectangleNode::setRect(const QRectF &rect)
Setzt das Rechteck dieses rect-Knotens auf rect.
Siehe auch rect().
void QSGRectangleNode::setRect(qreal x, qreal y, qreal w, qreal h)
Dies ist eine überladene Funktion.
Legt das Rechteck dieses Rect-Knotens so fest, dass es bei (x, y) beginnt und die Breite w und die Höhe h hat.
© 2025 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.