Label QML Type▲
-
Import Statement: import QtQuick.Controls
-
Inherits:: Text
-
Group: Label is part of text
I. Detailed Description▲
Label extends Text with styling and font inheritance. The default colors and font are style specific. Label can also have a visual background item.
Label
{
text
:
"Label"
}
You can use the properties of Text to change the appearance of the text as desired:
Label
{
text
:
"Hello world"
font.pixelSize
:
22
font.italic
:
true
}
I-1. See Also▲
See also Customizing Label
II. Property Documentation▲
II-1. background : Item▲
This property holds the background item.
If the background item has no explicit size specified, it automatically follows the control's size. In most cases, there is no need to specify width or height for a background item.
II-1-1. See Also▲
See also Customizing Label
II-2. [since QtQuick.Controls 2.5 (Qt 5.12)] bottomInset : real▲
This property holds the bottom inset for the background.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
II-2-1. See Also▲
See also Control Layout, topInset
II-3. [read-only, since QtQuick.Controls 2.5 (Qt 5.12)] implicitBackgroundHeight : real▲
This property holds the implicit background height.
The value is equal to background ? background.implicitHeight : 0.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
II-3-1. See Also▲
See also implicitBackgroundWidth
II-4. [read-only, since QtQuick.Controls 2.5 (Qt 5.12)] implicitBackgroundWidth : real▲
This property holds the implicit background width.
The value is equal to background ? background.implicitWidth : 0.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
II-4-1. See Also▲
See also implicitBackgroundHeight
II-5. [since QtQuick.Controls 2.5 (Qt 5.12)] leftInset : real▲
This property holds the left inset for the background.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
II-5-1. See Also▲
See also Control Layout, rightInset
II-6. [since QtQuick.Controls 2.5 (Qt 5.12)] rightInset : real▲
This property holds the right inset for the background.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
II-6-1. See Also▲
See also Control Layout, leftInset
II-7. [since QtQuick.Controls 2.5 (Qt 5.12)] topInset : real▲
This property holds the top inset for the background.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
II-7-1. See Also▲
See also Control Layout, bottomInset