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 [since QtQuick.Controls 2.5 (Qt 5.12)]
このプロパティは、背景のボトムインセットを保持します。
このプロパティは QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
Control Layout およびtopInsetも参照してください 。
implicitBackgroundHeight : real [read-only, since QtQuick.Controls 2.5 (Qt 5.12)]
このプロパティは、暗黙の背景の高さを保持する。
値はbackground ? background.implicitHeight : 0 に等しい。
このプロパティは QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
implicitBackgroundWidthも参照してください 。
implicitBackgroundWidth : real [read-only, since QtQuick.Controls 2.5 (Qt 5.12)]
このプロパティは暗黙の背景幅を保持する。
値はbackground ? background.implicitWidth : 0 に等しい。
このプロパティは QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
implicitBackgroundHeightも参照してください 。
leftInset : real [since QtQuick.Controls 2.5 (Qt 5.12)]
このプロパティは、背景の左インセットを保持します。
このプロパティは、QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
Control Layout およびrightInsetも参照してください 。
rightInset : real [since QtQuick.Controls 2.5 (Qt 5.12)]
このプロパティは、背景の右インセットを保持します。
このプロパティは、QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
Control Layout およびleftInsetも参照してください 。
topInset : real [since QtQuick.Controls 2.5 (Qt 5.12)]
このプロパティは、背景のトップインセットを保持します。
このプロパティは、QtQuick.Controls 2.5 (Qt 5.12) で導入されました。
Control Layout およびbottomInsetも参照してください 。
© 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.