Custom3DLabel QML Type
グラフにカスタムラベルを追加します。詳細...
Import Statement: | import QtGraphs |
In C++: | QCustom3DLabel |
Inherits: |
- 継承されたメンバを含む、全メンバの一覧
- Custom3DLabel はQt Graphs QML Types for 3D に含まれます。
プロパティ
- backgroundColor : color
- backgroundVisible : bool
- borderVisible : bool
- facingCamera : bool
- font : font
- text : string
- textColor : color
信号
- backgroundColorChanged(color color)
- backgroundEnabledChanged(bool enabled)
- borderEnabledChanged(bool enabled)
- facingCameraChanged(bool enabled)
- fontChanged(font font)
- textChanged(string text)
- textColorChanged(color color)
詳細説明
カスタムラベルのテキスト、フォント、位置、拡大縮小、回転、色を設定することができます。さらに、ラベルのボーダーと背景の可視性を切り替えることができます。色、ボーダー、背景は、明示的に設定しない限り、アクティブなテーマによって決定されます。
注意: スケーリングにおいて、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も参照してください 。
シグナル Documentation
backgroundColorChanged(color color) |
このシグナルはbackgroundColor がcolor に変更されたときに発行されます。
注意: 対応するハンドラはonBackgroundColorChanged
です。
backgroundEnabledChanged(bool enabled) |
このシグナルは backgroundEnabled がenabled に変更されたときに発せられます。
注意 : 対応するハンドラはonBackgroundEnabledChanged
です。
borderEnabledChanged(bool enabled) |
borderEnabled がenabled に変更されたとき、このシグナルが発せられる。
注: 対応するハンドラはonBorderEnabledChanged
です。
facingCameraChanged(bool enabled) |
このシグナルはfacingCamera がenabled に変更されたときに発せられます。
注: 対応するハンドラはonFacingCameraChanged
です。
textColorChanged(color color) |
このシグナルはtextColor がcolor に変更されたときに発せられる。
注 : 対応するハンドラはonTextColorChanged
です。
© 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.