Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.9
- import QtQuick.Controls 2.2
- import QtQuick.Window 2.2
- ApplicationWindow {
- id : root
- title: qsTr("Hello World")
- width: 640
- height: 480
- visible:true
- Component {
- id: lol
- Text {
- readonly property QtObject my: { print('hey', ApplicationWindow.window); return ApplicationWindow.window; }
- text: my.title
- }
- }
- Loader {
- id: loader
- sourceComponent: lol
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement