Custom3DLabel QML Type

Adds a custom label to a graph. 更多...

import 語句: import QtGraphs
在 C++: QCustom3DLabel
繼承:

Custom3DItem

特性

信號

詳細描述

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.

注意: 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" .

另請參閱 backgroundVisible .

backgroundVisible : bool

Defines whether the label background is visible. If set to false , backgroundColor has no effect. Defaults to true .

borderVisible : bool

Defines whether label borders are visible. Defaults to true .

facingCamera : bool

Defines whether the label will always face the camera. Defaults to false 。若設為 true , rotation 不起作用。

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" .

另請參閱 borderVisible .

信號文檔編製

backgroundColorChanged ( color color )

此信號發射,當 backgroundColor changes to color .

注意: 相應處理程序是 onBackgroundColorChanged .

backgroundEnabledChanged ( bool enabled )

This signal is emitted when backgroundEnabled changes to enabled .

注意: 相應處理程序是 onBackgroundEnabledChanged .

borderEnabledChanged ( bool enabled )

This signal is emitted when borderEnabled changes to enabled .

注意: 相應處理程序是 onBorderEnabledChanged .

facingCameraChanged ( bool enabled )

此信號發射,當 facingCamera changes to enabled .

注意: 相應處理程序是 onFacingCameraChanged .

fontChanged ( font font )

此信號發射,當 font changes to font .

注意: 相應處理程序是 onFontChanged .

textChanged ( string text )

此信號發射,當 text changes to text .

注意: 相應處理程序是 onTextChanged .

textColorChanged ( color color )

此信號發射,當 textColor changes to color .

注意: 相應處理程序是 onTextColorChanged .