Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.12
- import QtQuick.Dialogs 1.2
- import QtQuick.Controls 2.5
- import QtQuick.Window 2.3
- import "biglist/"
- Instantiator {
- id: windowInstantiator
- model: ListModel {
- id: windowModel
- ListElement { title: "Initial Window" }
- }
- delegate: Window {
- id: window
- visible: true
- width: 640
- height: 480
- title: model.title
- BigList {
- Button {
- text: qsTr("Duplicate Window")
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- onClicked: windowModel.append({ "title": "Window #" + windowModel.count})
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement