Advertisement
Pastybinneriest

main.qml

Dec 16th, 2021 (edited)
1,605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 1.36 KB | None | 0 0
  1. import QtQuick 2.15
  2. import QtQuick.Controls 2.15
  3.  
  4. ApplicationWindow {
  5.     visible: true
  6.     visibility: "FullScreen"
  7.     width: 100
  8.     height: 100
  9.     title: "Blue Screen of Death"
  10.     flags: Qt.FramelessWindowHint | Qt.Window | Qt.WindowStaysOnTopHint
  11.         onClosing: close.accepted = false
  12.     property string currTime: "000"
  13.     property QtObject backend
  14.     Rectangle {
  15.         anchors.fill: parent
  16.         Image {
  17.             sourceSize.width: parent.width
  18.             sourceSize.height: parent.height
  19.             source: 'https://i.imgur.com/6t2rEOq.jpg'
  20.             fillMode: Image.PreserveAspectCrop
  21.         }
  22.         Rectangle {
  23.             anchors.fill: parent
  24.             color: "transparent"
  25.             Text {
  26.                 text: ""
  27.                 font.pixelSize: 24
  28.                 color: "white"
  29.         }
  30.         Text {
  31.             anchors {
  32.                 bottom: parent.bottom
  33.                 bottomMargin: 302
  34.                 left: parent.left
  35.                 leftMargin: 150
  36.             }
  37.             text: currTime + " % complete"
  38.             font.family: "Lucida Console"
  39.         font.pointSize: 24
  40.             color: "white"
  41.         width: 75
  42.         horizontalAlignment: Text.AlignLeft
  43.         }
  44.     }
  45.     Connections {
  46.         target: backend
  47.         function onUpdated(msg) {
  48.             currTime = msg;
  49.         }
  50.     }
  51. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement