Qt3DExtras::QExtrudedTextGeometry Class
class Qt3DExtras::QExtrudedTextGeometryDie Klasse „QExtrudedTextGeometry“ ermöglicht die Erstellung eines 3D-Extrudiertexts im 3D-Raum. Mehr...
| Header: | #include <Qt3DExtras/QExtrudedTextGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| In QML: | ExtrudedTextGeometry |
| Erbt von: | Qt3DCore::QGeometry |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Eigenschaften
|
|
Öffentliche Funktionen
| QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr) | |
| float | extrusionLength() const |
| QFont | font() const |
| Qt3DCore::QAttribute * | indexAttribute() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| QString | text() const |
Öffentliche Slots
| void | setDepth(float extrusionLength) |
| void | setFont(const QFont &font) |
| void | setText(const QString &text) |
Signale
| void | depthChanged(float extrusionLength) |
| void | fontChanged(const QFont &font) |
| void | textChanged(const QString &text) |
Ausführliche Beschreibung
Die Klasse `QExtrudedTextGeometry` wird intern am häufigsten von `QText3DMesh` verwendet, kann aber auch in benutzerdefinierten Unterklassen von ` Qt3DRender::QGeometryRenderer ` eingesetzt werden.
Der Ursprung der Geometrie ist das hintere linke Ende der Grundlinie des Textes.
Dokumentation der Eigenschaften
extrusionLength : float
Enthält die Extrusionslänge des Textes.
Zugriffsfunktionen:
| float | extrusionLength() const |
| void | setDepth(float extrusionLength) |
Benachrichtigungssignal:
| void | depthChanged(float extrusionLength) |
font : QFont
Enthält die Schriftart des Textes.
Die Geometrie wird anhand der „pointSize“ der Schriftart normalisiert, sodass eine größere „pointSize“ zu glatterem statt zu größerem Text führt. „pixelSize“ sollte nicht verwendet werden.
Zugriffsfunktionen:
| QFont | font() const |
| void | setFont(const QFont &font) |
Notifier-Signal:
| void | fontChanged(const QFont &font) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut „Geometrieindex“.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | indexAttribute() const |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut „Geometrie-Normale“.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut „Geometrieposition“.
Zugriffsfunktionen:
| Qt3DCore::QAttribute * | positionAttribute() const |
text : QString
Enthält den für das Netz verwendeten Text.
Zugriffsfunktionen:
| QString | text() const |
| void | setText(const QString &text) |
Benachrichtigungssignal:
| void | textChanged(const QString &text) |
Dokumentation der Member-Funktionen
[explicit] QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
Erstellt eine neue `QExtrudedTextGeometry` mit ` parent`.
© 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.