このページでは

Custom3DLabel QML Type

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

Import Statement: import QtGraphs
In C++: QCustom3DLabel
Inherits:

Custom3DItem

プロパティ

信号

詳細説明

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

注: 拡大・縮小設定において 、z座標は影響しません。x座標とy座標を同じ値に設定すると、元のフォントサイズが維持されます。

プロパティのドキュメント

backgroundColor : color

有効になっている場合、ラベルの背景色。デフォルトは"gray" です。

「backgroundVisible」も参照してください 。

backgroundVisible : bool

ラベルの背景を表示するかどうかを指定します。false に設定した場合、backgroundColor は効果を持ちません。デフォルトはtrue です。

borderVisible : bool

ラベルの枠線を表示するかどうかを指定します。デフォルトはtrue です。

facingCamera : bool

ラベルが常にカメラの方を向くかどうかを指定します。デフォルトはfalse です。true に設定した場合、rotation の設定は無視されます。

font : font

ラベルに使用するフォント。デフォルトはFont {family: "Arial"; pointSize: 20} です。特殊な書式設定(アウトラインなど)はサポートされていません。

text : string

ラベルに表示するテキスト。リッチテキストはサポートされていません。

textColor : color

ラベルテキストの色。有効になっている場合は、ラベルの枠線にも影響します。デフォルトは"white" です。

「borderVisible」も参照してください 。

Signal ドキュメント

backgroundColorChanged(color color)

このシグナルは、backgroundColor がcolor に変更されたときに発生します。

注: 対応するハンドラは onBackgroundColorChanged です。

backgroundEnabledChanged(bool enabled)

このシグナルは、backgroundEnabledがenabled に変化したときに発火します。

注: 対応するハンドラは `onBackgroundEnabledChanged` です。

borderEnabledChanged(bool enabled)

このシグナルは、borderEnabledがenabled に変更されたときに発火します。

注: 対応するハンドラは `onBorderEnabledChanged` です。

facingCameraChanged(bool enabled)

このシグナルは、facingCamera がenabled に変更されたときに発生します。

注: 対応するハンドラは onFacingCameraChanged です。

fontChanged(font font)

このシグナルは、font がfont に変更されたときに発信されます。

注: 対応するハンドラは onFontChanged です。

textChanged(string text)

このシグナルは、text がtext に変更されたときに発生します。

注: 対応するハンドラは onTextChanged です。

textColorChanged(color color)

このシグナルは、textColor がcolor に変更されたときに発生します。

注: 対応するハンドラは onTextColorChanged です。

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