Styled text label with inherited font. 更多...
| import 語句: | import QtQuick.Controls 2.2 |
| Since: | Qt 5.7 |
| 繼承: | Text |
Label extends Text with styling and font inheritance. The default colors and font are style specific. Label can also have a visual background 項。
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 }
另請參閱 Customizing Label .
|
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.
另請參閱 Customizing Label .