Advertisement
Guest User

Untitled

a guest
Nov 7th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 2.9
  2. import QtQuick.Controls 2.2
  3. import QtQuick.Window 2.2
  4.  
  5. ApplicationWindow {
  6.     id : root
  7.     title: qsTr("Hello World")
  8.     width: 640
  9.     height: 480
  10.     visible:true
  11.  
  12.     Component {
  13.         id: lol
  14.         Text {
  15.             readonly property QtObject my:  { print('hey', ApplicationWindow.window); return ApplicationWindow.window; }
  16.             text: my.title
  17.         }
  18.     }
  19.  
  20.     Loader {
  21.         id: loader
  22.         sourceComponent: lol
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement