QSGRectangleNode Class

QSGRectangleNode 클래스는 시나리오 그래프를 사용하여 채워진 직사각형을 그리는 데 편리한 클래스입니다. 더 보기...

Header: #include <QSGRectangleNode>
CMake: find_package(Qt6 REQUIRED COMPONENTS Quick)
target_link_libraries(mytarget PRIVATE Qt6::Quick)
qmake: QT += quick
상속합니다: QSGGeometryNode

공용 함수

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)

상세 설명

멤버 함수 문서

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

이 사각형의 색을 반환합니다.

setColor()도 참조하세요 .

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

이 직사각형 노드가 포함하는 사각형을 반환합니다.

setRect()도 참조하세요 .

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

이 사각형의 색상을 color 으로 설정합니다. 기본 색상은 흰색입니다.

color()도 참조하세요 .

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

이 직사각형 노드의 직사각형을 rect 로 설정합니다.

rect()도 참조하세요 .

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

이것은 오버로드된 함수입니다.

이 직사각형 노드의 직사각형이 (x, y)에서 시작하고 너비 w 와 높이 h 를 갖도록 설정합니다.

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