Advertisement
Guest User

Untitled

a guest
May 1st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.74 KB | None | 0 0
  1. import QtMultimedia 5.0
  2. import QtQuick 2.0
  3. import SddmComponents 2.0
  4.  
  5. Rectangle {
  6.     id: container
  7.     width: 1920
  8.     height: 1080
  9.  
  10.     property int sessionIndex: session.index
  11.  
  12.     Connections {
  13.         target: sddm
  14.         onLoginSucceeded: {
  15.         }
  16.  
  17.         onLoginFailed: {
  18.             txtMessage.text = qsTr("you can fuck off and get off my pc now, thank you.")
  19.             listView.currentItem.password.text = ""
  20.         }
  21.     }
  22.  
  23.     FontLoader { id: clockFont; source: "UbuntuMono-B.ttf" }
  24.  
  25.     Repeater {
  26.         model: screenModel
  27.     VideoOutput {
  28.         source: player
  29.         anchors.fill: parent
  30.     MediaPlayer {
  31.         id: player
  32.         source: "bf.mp4"
  33.         autoLoad: true
  34.         autoPlay: true
  35.         loops: -1
  36.     }
  37.     }
  38.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement