import QtQuick import QtQuick.Controls ApplicationWindow { id: appWindow width: Screen.width * .6 height: Screen.height * .6 visible: true title: "PYQCRM" TopBar { id:topBar anchors { rightMargin: 9 leftMargin: 9 } visible: bad_config? false: true } Item { id: mainView } Loader { id: appLoader anchors { left: parent.left right: parent.right top: topBar.bottom bottom: parent.bottom topMargin: 0 rightMargin: 9 leftMargin: 9 } source: bad_config? "firststart.qml": "test.qml" property alias window: appWindow } }