import QtQuick 2.9 import QtQuick.Window 2.2 import QtQuick.Controls 2.2 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") CheckBox { checked: true onClicked: { sceneLoader.active = checked } } Loader { id: sceneLoader asynchronous: true sourceComponent: sceneComponent anchors.fill: parent anchors.topMargin: 50 } Component { id: sceneComponent MainScene { } } }