Open and close additional window (QML)
问题 Currently I have a window openning in the following way: property variant win Button { id: testButton MouseArea { onClicked: { var component = Qt.createComponent("test.qml"); win = component.createObject(testButton); win.show(); } } } Is it ok to create a window like this or there is a better way to do it (from QML, not from C++)? When I close this additional window (just by clicking "x" button), I want to connect it to another event (for example, changing color of the button). How to do it?