Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.15
- import QtQuick.Controls 2.15
- ApplicationWindow {
- visible: true
- visibility: "FullScreen"
- width: 100
- height: 100
- title: "Blue Screen of Death"
- flags: Qt.FramelessWindowHint | Qt.Window | Qt.WindowStaysOnTopHint
- onClosing: close.accepted = false
- property string currTime: "000"
- property QtObject backend
- Rectangle {
- anchors.fill: parent
- Image {
- sourceSize.width: parent.width
- sourceSize.height: parent.height
- source: 'https://i.imgur.com/6t2rEOq.jpg'
- fillMode: Image.PreserveAspectCrop
- }
- Rectangle {
- anchors.fill: parent
- color: "transparent"
- Text {
- text: ""
- font.pixelSize: 24
- color: "white"
- }
- Text {
- anchors {
- bottom: parent.bottom
- bottomMargin: 302
- left: parent.left
- leftMargin: 150
- }
- text: currTime + " % complete"
- font.family: "Lucida Console"
- font.pointSize: 24
- color: "white"
- width: 75
- horizontalAlignment: Text.AlignLeft
- }
- }
- Connections {
- target: backend
- function onUpdated(msg) {
- currTime = msg;
- }
- }
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement