Window and Controls - prevent multiple child windows
QML and Qt Quick
2
Posts
2
Posters
904
Views
1
Watching
-
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?