Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Window and Controls - prevent multiple child windows
KyleWolfe last edited by
So I've got the following in a MenuBar:
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?
Jens last edited by
You could for instance declare connectWindow as a regular property of the main window and only set the visible property to true if it has already been created when you trigger connect.