Sorting out start-up/shutdown sequence to avoid flashing old frame upon connection.
Adding a couple of option to clear our frames upong close and/or open.
2 import QtQuick.Controls 1.2
3 import QtPositioning 5.3
5 import QtQuick.Dialogs 1.2
6 import QtQuick.Window 2.1
7 import Qt.labs.settings 1.0
9 import QtQuick.Layouts 1.1
17 title: qsTr("MiniDisplay Manager")
18 SystemPalette { id: palette }
19 //Component.onCompleted: progressBar.visible=tabViewMain.getTab(tabViewMain.currentIndex).status !== Loader.Ready
21 statusBar: DisplayStatusBar {}
25 property alias x: appWindow.x
26 property alias y: appWindow.y
27 property alias width: appWindow.width
28 property alias height: appWindow.height
37 onTriggered: Qt.quit();
43 function trackProgress()
45 progressBar.value = tabViewMain.getTab(tabViewMain.currentIndex).progress;
46 progressBar.visible = tabViewMain.getTab(tabViewMain.currentIndex).status !== Loader.Ready;
50 function updateDisplayStatus()
54 labelDisplayStatus.text=qsTr("Connected");
58 labelDisplayStatus.text=qsTr("Disconnected");
61 labelDisplayVendor.text=display.vendor;
62 labelDisplayProduct.text=display.product;
63 labelDisplaySerialNumber.text=display.serialNumber;
69 //onOpened:updateDisplayStatus()
70 //onClosed:updateDisplayStatus()
71 //onOpenError:{ updateDisplayStatus(); labelDisplayStatus.text=qsTr("Connection error");}
83 title: qsTr("Display")
85 //onLoaded: progressBar.visible=false
86 onStatusChanged: trackProgress()
87 DisplayTab { anchors.fill: parent }
93 onStatusChanged: trackProgress()
94 FontsTab { anchors.fill: parent }
99 onStatusChanged: trackProgress()
100 TestsTab { anchors.fill: parent }
106 anchors.centerIn: parent