Styled text label with inherited font. More...
Import Statement: | import QtQuick.Controls 2.4 |
Since: | Qt 5.7 |
Inherits: |
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 }
See also Customizing Label.
background : Item |
This property holds the background item.
Note: 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.
See also Customizing Label.
palette : palette |
This property holds the palette currently set for the label.
This QML property was introduced in QtQuick.Controls 2.3 (Qt 5.10).
See also Control::palette.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: