Custom3DLabel QML Type
Aggiunge un'etichetta personalizzata a un grafico. Altro...
| Import Statement: | import QtGraphs |
| In C++: | QCustom3DLabel |
| Inherits: |
- Elenco di tutti i membri, compresi quelli ereditati
- Custom3DLabel fa parte di Qt Graphs Tipi QML per il 3D.
Proprietà
- backgroundColor : color
- backgroundVisible : bool
- borderVisible : bool
- facingCamera : bool
- font : font
- text : string
- textColor : color
Segnali
- backgroundColorChanged(color color)
- backgroundEnabledChanged(bool enabled)
- borderEnabledChanged(bool enabled)
- facingCameraChanged(bool enabled)
- fontChanged(font font)
- textChanged(string text)
- textColorChanged(color 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 questa opzione è abilitata. Il valore predefinito è "gray".
Vedi anche backgroundVisible.
backgroundVisible : bool
Determina se lo sfondo dell'etichetta è visibile. Se impostato su " false", " backgroundColor " non ha alcun effetto. Il valore predefinito è " true".
borderVisible : bool
Determina se i bordi delle etichette sono visibili. 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 borderVisible.
Documentazione di Signal
backgroundColorChanged(color color)
Questo segnale viene emesso quando backgroundColor diventa color.
Nota: il gestore corrispondente è onBackgroundColorChanged.
backgroundEnabledChanged(bool enabled)
Questo segnale viene emesso quando la proprietà `backgroundEnabled` passa a ` enabled`.
Nota: il gestore corrispondente è onBackgroundEnabledChanged.
borderEnabledChanged(bool enabled)
Questo segnale viene emesso quando borderEnabled passa a enabled.
Nota: il gestore corrispondente è ` onBorderEnabledChanged`.
facingCameraChanged(bool enabled)
Questo segnale viene emesso quando facingCamera diventa enabled.
Nota: il gestore corrispondente è onFacingCameraChanged.
fontChanged(font font)
Questo segnale viene emesso quando font diventa font.
Nota: il gestore corrispondente è onFontChanged.
textChanged(string text)
Questo segnale viene emesso quando text passa a text.
Nota: il gestore corrispondente è onTextChanged.
textColorChanged(color color)
Questo segnale viene emesso quando textColor passa a color.
Nota: il gestore corrispondente è onTextColorChanged.
© 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.