このページでは

Custom3DLabel QML Type

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

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

Custom3DItem

Status: Deprecated

この型は非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

詳細説明

カスタムラベルのテキスト、フォント、位置、拡大縮小、回転、および色を設定できます。さらに、ラベルの枠線や背景の表示/非表示を切り替えることもできます。色、枠線、背景は、明示的に設定されていない限り、アクティブなテーマによって決定されます。

注: 拡大縮小の際 、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.