Label QML Type
A text label. More...
Import Statement: | import QtQuick.Controls 1.4 |
Since: | Qt 5.1 |
Inherits: |
Detailed Description
In addition to the normal Text type, Label follows the font and color scheme of the system. Use the text
property to assign a text to the label. For other properties check Text.
A simple label looks like this:
Label { text: "Hello world" }
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 color: "steelblue" }
© 2020 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.