Custom3DLabel QML Type

グラフにカスタムラベルを追加します。詳細...

Import Statement: import QtDataVisualization 1.8
Since: QtDataVisualization 1.1
In C++: QCustom3DLabel
Inherits:

Custom3DItem

プロパティ

詳細説明

カスタムラベルのテキスト、フォント、位置、拡大縮小、回転、色を設定することができます。さらに、ラベルのボーダーと背景の可視性を切り替えることができます。色、ボーダー、背景は、明示的に設定しない限り、アクティブなテーマによって決定されます。

注意: スケーリングにおいて、z座標は影響しません。同じx座標とy座標を設定すると、元のフォント寸法が保持されます。

プロパティの説明

backgroundColor : color

ラベルの背景色(有効な場合)。デフォルトは"gray"

backgroundEnabledも参照


backgroundEnabled : bool

ラベルの背景を有効にするかどうかを定義します。false に設定する と 、backgroundColor は効力を持ち ません。デフォルトはtrue です。


borderEnabled : bool

ラベルの枠線を有効にするかど う かを定義 し ます。デフォルトはtrue です。


facingCamera : bool

ラ ベルが常にカ メ ラ の方を向くかど う かを定義 し ます。デフォルトはfalse です。true に設定した場合、rotation は意味を持ちません。


font : font

ラベルに使用するフォント。デフォルトはFont {family: "Arial"; pointSize: 20} です。 特殊なフォーマット(アウトライン化など)には対応していません。


text : string

ラベルのテキスト。リッチテキストには対応していません。


textColor : color

ラベルテキストの色。有効にすると、ラベルの枠にも影響します。デフォルトは"white" です。

borderEnabledも参照


© 2025 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.