Custom3DLabel QML Type
Aggiunge un'etichetta personalizzata a un grafico. Altro...
| Import Statement: | import QtDataVisualization 1.12 |
| Since: | QtDataVisualization 1.1 |
| In C++: | QCustom3DLabel |
| Inherits: | |
| Status: | Deprecated |
Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.
Proprietà
- backgroundColor : color
- backgroundEnabled : bool
- borderEnabled : bool
- facingCamera : bool
- font : font
- text : string
- textColor : color
Descrizione dettagliata
È possibile impostare il testo, il carattere, la posizione, il ridimensionamento, la rotazione e i colori di un'etichetta personalizzata. Inoltre, è possibile attivare o disattivare la visibilità dei bordi e dello sfondo dell'etichetta. I colori, i bordi e lo sfondo sono determinati dal tema attivo, a meno che non vengano impostati esplicitamente.
Nota: nel ridimensionamento, la coordinata z non ha alcun effetto. Impostando le stesse coordinate x e y si mantengono le dimensioni originali del carattere.
Documentazione delle proprietà
backgroundColor : color
Il colore dello sfondo dell'etichetta, se abilitato. Il valore predefinito è "gray".
Vedi anche backgroundEnabled.
backgroundEnabled : bool
Determina se lo sfondo dell'etichetta è abilitato. Se impostato su " false", l'opzione " backgroundColor " non ha alcun effetto. Il valore predefinito è " true".
borderEnabled : bool
Determina se i bordi delle etichette sono abilitati. Il valore predefinito è ` true`.
facingCamera : bool
Stabilisce se l'etichetta dovrà essere sempre rivolta verso la fotocamera. Il valore predefinito è “ false ”. Se impostato su “ true ”, “ rotation ” non ha alcun effetto.
font : font
Il carattere da utilizzare per l'etichetta. Il valore predefinito è " Font {family: "Arial"; pointSize: 20}". Non sono supportate formattazioni speciali (ad esempio, il contorno).
text : string
Il testo da inserire nell'etichetta. Il formato RTF non è supportato.
textColor : color
Il colore del testo dell'etichetta. Influisce anche sul bordo dell'etichetta, se abilitato. Il valore predefinito è "white".
Vedi anche borderEnabled.
© 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.