Adding MiniDisplay methods to display image and window.
Using our test tab to render our display frame in QML and send it to our display.
Using a timer and frame counter to profile our performance.
2 import QtQuick.Controls 1.2
3 import QtQuick.Window 2.1
5 import QtQuick.Layouts 1.1
11 //SystemPalette { id: palette }
21 title: "Splash Window"
23 flags: Qt.SplashScreen
24 property int timeoutInterval: 41
26 //! [splash-properties]
27 //! [screen-properties]
28 x: (Screen.width - rectangleScreen.width) / 2
29 y: (Screen.height - rectangleScreen.height) / 2
30 //! [screen-properties]
31 width: rectangleScreen.width
32 height: rectangleScreen.height
33 property int frameCounter:0;
34 property var startTime:new Date();
38 anchors.centerIn: parent
54 //anchors.centerIn: parent
61 //anchors.centerIn: parent
74 interval: splash.timeoutInterval; running: true; repeat: true
78 var current = new Date();
79 var seconds = (current.getTime() - splash.startTime.getTime())/1000;
81 splash.frameCounter++;
82 labelFrameCount.text=splash.frameCounter;
83 labelTime.text=seconds;
84 display.renderWindow(splash);
85 display.swapBuffers();
90 Component.onCompleted: {
102 text: qsTr("Render Window")
104 display.renderWindow(splash);
105 display.swapBuffers();