IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QSGRectangleNode Class

The QSGRectangleNode class is a convenience class for drawing solid filled rectangles using scenegraph.

This class was introduced in Qt 5.8.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QSGRectangleNode Class

  • Header: QSGRectangleNode

  • Since: Qt 5.8

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Quick)

    target_link_libraries(mytarget PRIVATE Qt6::Quick)

  • qmake: QT += quick

  • Inherits: QSGGeometryNode

  • Inherited By:

Detailed Description

 

Member Function Documentation

 

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

Returns the color of this rectangle.

See Also

See also setColor()

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

Returns the rectangle that this rect node covers.

See Also

See also setRect()

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

Sets the color of this rectangle to color. The default color will be white.

See Also

See also color()

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

Sets the rectangle of this rect node to rect.

See Also

See also rect()

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

This is an overloaded function.

Sets the rectangle of this rect node to begin at (x, y) and have width w and height h.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+