Quantcast
Viewing all articles
Browse latest Browse all 4972

Window and Controls - prevent multiple child windows

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?

Viewing all articles
Browse latest Browse all 4972

Trending Articles