Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.5
- import QtQuick.Window 2.2
- import QtQuick.Controls 1.4
- import QtQuick.Layouts 1.1
- Window {
- width: 800
- height: 600
- visible: true
- title: 'window1'
- Loader {
- id: winLoader
- active: false
- sourceComponent: NewWin {
- visible: true
- }
- }
- RowLayout {
- anchors.centerIn: parent
- Button {
- text: 'show window'
- onClicked: {
- winLoader.active = false
- winLoader.active = true
- }
- }
- Button {
- text: 'close window'
- onClicked: winLoader.active = false
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement