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 .