Hello.
I am writing a mobile application on Qt 5.4. For the description of the interface took QML. There was the following task.
There are two windows, a parent and a child. Accordingly, the child window is called from the parent.
It is required to call the child window so that when you click the back button on the OS Androyd, the application returns to the parent window.
With such a call to the child window, the back button exits the application.
var component = Qt.createComponent("ChildWnd.qml") var window = component.createObject(root) window.show()