QSGRectangleNode Class
A classe QSGRectangleNode é uma classe de conveniência para desenhar retângulos com preenchimento sólido usando o scenegraph. Mais...
| Cabeçalho: | #include <QSGRectangleNode> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| Herdado de: | QSGGeometryNode |
Funções públicas
| 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) |
Documentação das funções de membro
[override virtual noexcept default] QSGRectangleNode::~QSGRectangleNode()
Destrói a instância de ` QSGRectangleNode`. Este destrutor é virtual.
[pure virtual] QColor QSGRectangleNode::color() const
Retorna a cor deste retângulo.
Veja também ` setColor()`.
[pure virtual] QRectF QSGRectangleNode::rect() const
Retorna o retângulo coberto por este nó “rect”.
Veja também ` setRect()`.
[pure virtual] void QSGRectangleNode::setColor(const QColor &color)
Define a cor deste retângulo como color. A cor padrão será o branco.
Veja também color().
[pure virtual] void QSGRectangleNode::setRect(const QRectF &rect)
Define o retângulo deste nó “rect” como rect.
Veja também rect().
void QSGRectangleNode::setRect(qreal x, qreal y, qreal w, qreal h)
Define o retângulo deste nó “rect” para começar em (x, y) e ter largura w e altura h.
Esta é uma função sobrecarregada.
© 2026 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.