Label QML Type
フォントを継承したスタイル付きテキストラベル。もっと見る...
Import Statement: | import QtQuick.Controls |
Inherits: |
プロパティ
- background : Item
- bottomInset : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- implicitBackgroundHeight : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- implicitBackgroundWidth : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- leftInset : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- rightInset : real
(since QtQuick.Controls 2.5 (Qt 5.12))
- topInset : real
(since QtQuick.Controls 2.5 (Qt 5.12))
詳細説明
Label はText をスタイルとfont 継承で拡張します。デフォルトの色とフォントはスタイルに依存します。Label は視覚的なbackground アイテムも持つことができます。
Label { text: "Label" }
Text のプロパティを使って、テキストの外観を自由に変更することができます:
Label { text: "Hello world" font.pixelSize: 22 font.italic: true }
Label のカスタマイズも参照してください 。
プロパティ ドキュメント
background : Item |
このプロパティは背景項目を保持します。
注意: 背景アイテムのサイズが明示的に指定されていない場合、自動的にコントロールのサイズに従います。ほとんどの場合、背景項目の幅や高さを指定する必要はない。
ラベルのカスタマイズも参照のこと 。
bottomInset : real |
このプロパティは、背景のボトムインセットを保持します。
このプロパティは、QtQuick.Controls 2.5(Qt 5.12)で導入されました。
Control Layout およびtopInsetも参照して ください。
implicitBackgroundHeight : real |
このプロパティは、暗黙の背景の高さを保持します。
値はbackground ? background.implicitHeight : 0
と同じです。
このプロパティは QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
implicitBackgroundWidthも参照してください 。
implicitBackgroundWidth : real |
このプロパティは、暗黙の背景の幅を保持します。
値はbackground ? background.implicitWidth : 0
に等しい。
このプロパティは QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
implicitBackgroundHeightも参照してください 。
leftInset : real |
このプロパティは、背景の左インセットを保持します。
このプロパティは、QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
Control Layout およびrightInset も参照して ください。
rightInset : real |
このプロパティは、背景の右インセットを保持します。
このプロパティは、QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
Control Layout およびleftInset も参照して ください。
topInset : real |
このプロパティは、背景の上部インセットを保持します。
このプロパティは、QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
Control Layout とbottomInset も参照して ください。
© 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.