So I’ve got the following in a MenuBar:
MenuItem {
text: "Connect"
onTriggered: {
var component = Qt.createComponent("connect.qml");
var connectWindow = component.createObject(this);
}
}
Is there a way within QML that I can check to see if connectWindow was already been created in order to prevent the same child window from opening?
↧