Qt3DExtras::QExtrudedTextMesh Class
class Qt3DExtras::QExtrudedTextMeshEin 3D-extrudiertes Text-Mesh. Mehr...
| Kopfzeile: | #include <Qt3DExtras/QExtrudedTextMesh> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| In QML: | ExtrudedTextMesh |
| Erbt von: | Qt3DRender::QGeometryRenderer |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Eigenschaften
Öffentliche Funktionen
| QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr) | |
| float | depth() const |
| QFont | font() const |
| QString | text() const |
Öffentliche Slots
Signale
| void | depthChanged(float depth) |
| void | fontChanged(const QFont &font) |
| void | textChanged(const QString &text) |
Detaillierte Beschreibung
Der Ursprung des Gitters liegt am hinteren linken Ende der Grundlinie des Textes.
Eigenschaftsdokumentation
depth : float
Enthält die Extrusionstiefe des Textes.
Zugriffsfunktionen:
| float | depth() const |
| void | setDepth(float depth) |
Benachrichtigungssignal:
| void | depthChanged(float depth) |
font : QFont
Enthält die Schriftart des Textes.
Die Mesh-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) |
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] QExtrudedTextMesh::QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr)
Erstellt ein neues `QText3DMesh` 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.