qtdeclarative/tests/manual/quickcontrols/testbench/controls/Label.qml

20 lines
461 B
QML

// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Controls
QtObject {
property var supportedStates: [
[],
["disabled"]
]
property Component component: Label {
text: "Label with a <a href=\"http://doc.qt.io\">link</a>"
onTextChanged: print(text)
enabled: !is("disabled")
textFormat: Label.StyledText
}
}