import QtQuick import QtQuick.Controls ApplicationWindow { id: appWindow width: Screen.width * .6 height: Screen.height * .6 visible: true title: "PYQCRM" TopBar { id:topBar visible: if (bad_config) visible = false } Item { id: mainView } Loader { id: appLoader anchors { left: parent.left right: parent.right top: topBar.bottom bottom: parent.bottom } source: bad_config? "firststart.qml":"Dashboard.qml" property alias window: appWindow } }