Qt 5.8 | Qt Data Visualization | QML Types | Custom3DLabel QML Type

Qt 5.8.0 Reference Documentation

# Custom3DLabel QML Type

The Custom3DLabel type is for creating custom labels to be added to a graph. More...

Import Statement: | import QtDataVisualization 1.2
Since: | QtDataVisualization 1.1
Instantiates: | QCustom3DLabel
Inherits: | Custom3DItem

- List of all members, including inherited members

## Properties

- backgroundColor : color
- backgroundEnabled : bool
- borderEnabled : bool
- facingCamera : bool
- font : font
- text : string
- textColor : color

## Detailed Description

This type is for creating custom labels to be added to a graph. You can set text, font, position, scaling, rotation, and colors. You can also toggle borders and background for the label. Colors, borders and background are used from active theme unless any of them is set explicitly.

Note: In scaling, z has no effect. Setting the same x and y retains the original font dimensions.

## Property Documentation

backgroundColor : color

Color for the label background, if enabled. Defaults to `"gray"`.

See also backgroundEnabled.

backgroundEnabled : bool

Enable label background. If set to `false`, backgroundColor has no effect. Defaults to `true`.

borderEnabled : bool

Enable label borders. Defaults to `true`.

facingCamera : bool

Forces the label to face camera always. 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

Color for the label text. Also affects label border, if enabled. Defaults to `"white"`.

See also borderEnabled.