Adds a custom label to a graph. More...
Import Statement: | import QtDataVisualization 1.2 |
Since: | QtDataVisualization 1.1 |
Instantiates: | QCustom3DLabel |
Inherits: |
The text, font, position, scaling, rotation, and colors of a custom label can be set. In addition, the visibility of the borders and background of the label can be toggled. Colors, borders, and background are determined by the active theme unless set explicitly.
Note: In scaling, the z-coordinate has no effect. Setting the same x- and y-coordinates retains the original font dimensions.
backgroundColor : color |
The color for the label background, if enabled. Defaults to "gray"
.
See also backgroundEnabled.
backgroundEnabled : bool |
Defines whether the label background is enabled. If set to false
, backgroundColor has no effect. Defaults to
true
.
borderEnabled : bool |
Defines whether label borders are enabled. Defaults to true
.
facingCamera : bool |
Defines whether the label will always face the camera. Defaults to false
. If set to true
, rotation has no effect.
font : font |
The font to be used for the label. Defaults to Font {family: "Arial"; pointSize: 20}
. Special formatting (for example, outlined) is not supported.
text : string |
The text for the label. Rich text is not supported.
textColor : color |
The color for the label text. Also affects label border, if enabled. Defaults to "white"
.
See also borderEnabled.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: