qt6-bb10/qtdeclarative/tests/auto/quick/qquickloader/data/active.8.qml

14 lines
324 B
QML

import QtQuick 2.0
Rectangle {
id: root
color: "blue"
width: 100; height: 100
property bool success: false
Loader {
anchors.fill: parent
sourceComponent: Rectangle { color: "red" }
onLoaded: { root.success = true; } // should be triggered since active is true by default
}
}