このページでは

QSGRectangleNode Class

QSGRectangleNode クラスは、シーングラフを使用して塗りつぶされた長方形を描画するための利便性向上のためのクラスです。詳細...

ヘッダー: #include <QSGRectangleNode>
CMake: find_package(Qt6 REQUIRED COMPONENTS Quick)
target_link_libraries(mytarget PRIVATE Qt6::Quick)
qmake: QT += quick
継承元: 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)

詳細な説明

メンバ関数のドキュメント

[override virtual noexcept default] QSGRectangleNode::~QSGRectangleNode()

QSGRectangleNode のインスタンスを破棄します。このデストラクタは仮想関数です。

[pure virtual] QColor QSGRectangleNode::color() const

この矩形の色を返します。

setColor()も参照してください 。

[pure virtual] QRectF QSGRectangleNode::rect() const

この rect ノードが覆う矩形を返します。

setRect()も参照してください 。

[pure virtual] void QSGRectangleNode::setColor(const QColor &color)

この矩形の色をcolor に設定します。デフォルトの色は白になります。

color()も参照してください 。

[pure virtual] void QSGRectangleNode::setRect(const QRectF &rect)

この rect ノードの矩形を `rect` に設定します。

rect()も参照してください 。

void QSGRectangleNode::setRect(qreal x, qreal y, qreal w, qreal h)

このrectノードの矩形を、(x,y)を起点とし、幅w 、高さh となるように設定します。

これはオーバーロードされた関数です。

© 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.