Qt3DExtras::QExtrudedTextMesh Class
class Qt3DExtras::QExtrudedTextMeshUna mesh di testo estrusa in 3D. Altro...
| Intestazione: | #include <Qt3DExtras/QExtrudedTextMesh> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| In QML: | ExtrudedTextMesh |
| Eredita da: | Qt3DRender::QGeometryRenderer |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
Funzioni pubbliche
| QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr) | |
| float | depth() const |
| QFont | font() const |
| QString | text() const |
Slot pubblici
Segnali
| void | depthChanged(float depth) |
| void | fontChanged(const QFont &font) |
| void | textChanged(const QString &text) |
Descrizione dettagliata
L'origine della mesh è l'estremità posteriore sinistra della linea di base del testo.
Documentazione delle proprietà
depth : float
Contiene la profondità di estrusione del testo.
Funzioni di accesso:
| float | depth() const |
| void | setDepth(float depth) |
Segnale di notifica:
| void | depthChanged(float depth) |
font : QFont
Contiene il font del testo.
La geometria della mesh viene normalizzata in base al valore pointSize del font, pertanto un valore pointSize maggiore produrrà un testo più liscio, anziché più grande. Non si dovrebbe utilizzare pixelSize.
Funzioni di accesso:
| QFont | font() const |
| void | setFont(const QFont &font) |
Segnale di notifica:
| void | fontChanged(const QFont &font) |
text : QString
Contiene il testo utilizzato per la mesh.
Funzioni di accesso:
| QString | text() const |
| void | setText(const QString &text) |
Segnale di notifica:
| void | textChanged(const QString &text) |
Documentazione delle funzioni membro
[explicit] QExtrudedTextMesh::QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr)
Crea un nuovo oggetto QText3DMesh con ` 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.