このページでは

Custom3DLabel QML Type

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

Import Statement: import QtDataVisualization 1.11
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も参照してください

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