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

QExtrudedTextMesh Class

A 3D extruded Text mesh.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QExtrudedTextMesh Class

  • Header: Qt3DExtras/QExtrudedTextMesh

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dextras)

    target_link_libraries(mytarget PRIVATE Qt6::3dextras)

  • qmake: QT += 3dextras

  • Inherited By:

  • Instantiated By: qml-qt3d-extras-extrudedtextmesh.xml

  • Inherits: Qt3DRender::QGeometryRenderer

Detailed Description

The origin of the mesh is the rear left end of the text's baseline.

Property Documentation

 

depth : float

Holds the extrusion depth of the text.

Access functions:

  • float depth() const

  • void setDepth(float depth)

Notifier signal:

  • void depthChanged(float depth)

font : QFont

Holds the font of the text.

The mesh geometry is normalized by the font's pointSize, so a larger pointSize will result in smoother, rather than larger, text. pixelSize should not be used.

Access functions:

  • font() const

  • void setFont(const &font)

Notifier signal:

  • void fontChanged(const &font)

text : QString

Holds the text used for the mesh.

Access functions:

  • text() const

  • void setText(const &text)

Notifier signal:

  • void textChanged(const &text)

Member Function Documentation

 

[explicit] QExtrudedTextMesh::QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr)

Constructs a new QText3DMesh with parent.

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