The QSGSimpleRectNode class is a convenience class for drawing solid filled rectangles using scenegraph. 更多...
头: | #include <QSGSimpleRectNode> |
qmake: | QT += quick |
继承: | QSGGeometryNode |
该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
QSGSimpleRectNode (const QRectF & rect , const QColor & color ) | |
QSGSimpleRectNode () | |
QColor | color () const |
QRectF | rect () const |
void | setColor (const QColor & color ) |
void | setRect (const QRectF & rect ) |
void | setRect (qreal x , qreal y , qreal w , qreal h ) |
The QSGSimpleRectNode class is a convenience class for drawing solid filled rectangles using scenegraph.
警告: This utility class is only functional when running with the OpenGL or software backends of the Qt Quick scenegraph. For a proper cross-platform alternative prefer using QSGRectangleNode 凭借 QQuickWindow::createRectangleNode () 或 QSGEngine::createRectangleNode ().
构造 QSGSimpleRectNode instance which is spanning rect with the color color .
构造 QSGSimpleRectNode instance with an empty rectangle and white color.
Returns the color of this rectangle.
另请参阅 setColor ().
Returns the rectangle that this rect node covers.
另请参阅 setRect ().
Sets the color of this rectangle to color . The default color will be white.
另请参阅 color ().
Sets the rectangle of this rect node to rect .
另请参阅 rect ().
这是重载函数。
Sets the rectangle of this rect node to begin at ( x , y ) and have width w 和高度 h .