import QtQuick import QtQuick.Window import QtQuick.Controls import QtQuick.Layouts import QtCore import API ApplicationWindow { property int counter: 0 id: window width: 640 height: 480 visible: true title: "Magpie" header: Label { text: stack.currentItem.title horizontalAlignment: Text.AlignHCenter } StackView { id: stack initialItem: welcome anchors.fill: parent } Welcome { id: welcome onPickServer: function (address) { pick.address = address; stack.push(pick) } } ServerPick { visible: false id: pick onBack: stack.pop() onSuccess: function (address) { API.address = address stack.pop(); } } }