TextStyle QML Type
コントロールのラベルのテキストスタイルを定義します。詳細...
| Import Statement: | import Qt.labs.StyleKit |
プロパティ
- alignment : Qt::Alignment
- bold : bool
- bottomPadding : real
- color : color
- italic : bool
- leftPadding : real
- padding : real
- pointSize : real
- rightPadding : real
- topPadding : real
詳細説明
TextStyle は、color 、alignment 、padding のようなコントロール内のテキストラベルの外観を制御するためのプロパティと、bold 、italic 、font size のような特定のフォント関連のプロパティを提供します。
これは、すべてのControlStateStyle のtext グループ化プロパティとして利用可能です。
注意: Qt.labs モジュールの型は、将来のバージョンでも互換性が保たれることを保証するものではありません。
DelegateStyle,ControlStyle,ControlStateStyle,FallbackStyle Referenceも参照してください 。
プロパティのドキュメント
alignment : Qt::Alignment
利用可能な領域内でのテキストの配置。
bold : bool
テキストを太字で表示するかどうか。デフォルト値はfalse です。
italicも参照 。
bottomPadding : real
テキストを囲む下側のパディング。設定されていない場合はpadding に戻る。
padding 、topPadding 、leftPadding 、rightPaddingも参照 。
color : color
文字の色。
italic : bool
テキストをイタリック体で表示するかどうか。デフォルト値はfalse です。
boldも参照 。
leftPadding : real
テキストを囲む左パディング。設定されていない場合はpadding に戻る。
padding 、rightPadding 、topPadding 、bottomPaddingも参照 。
padding : real
テキス ト周りの均一なパディング。これを設定すると、leftPadding,rightPadding,topPadding,bottomPadding のデフォルト値が得られます。各辺は個別にオーバーライドできます。
leftPadding,rightPadding,topPadding,bottomPaddingも参照 。
pointSize : real
テキストフォントのポイントサイズ。
rightPadding : real
テキス ト を囲む右パディング。設定されていない場合はpadding に戻る。
padding 、leftPadding 、topPadding 、bottomPaddingも参照 。
topPadding : real
テキストを囲む上部のパディング。設定されていない場合はpadding に戻る。
© 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.