Hi,

I'm trying to show a new window after clicking in the menu. I'm creating the windows as a new component. Something like this:

Qt Code:
  1. onTriggered: {
  2.  
  3. var component = Qt.createComponent("Info.qml");
  4. if (component.status == Component.Ready) {
  5. /*
  6.   * The created object will become a child of the appWindow
  7.   * item in main.qml.
  8.   */
  9. var object = component.createObject(mainWindow);
  10. object.show()
  11. } else if (component.status == Component.Error) {
  12. // Error Handling
  13. console.log("Error loading component:", component.errorString());
  14. }
  15. }
To copy to clipboard, switch view to plain text mode 

Info.qml:

Qt Code:
  1. Window {
  2. id: info
  3. title: qsTr("Info")
  4.  
  5. width: 340
  6. height: 280
  7. visible: true
  8.  
  9. Text {
  10. text: "Hello World!"
  11. font.pointSize: 24
  12. }
  13. }
To copy to clipboard, switch view to plain text mode 

If I launch the desktop application everything goes well, but if I launch the application in my Android emulator, when I press the menu, I don't see the window.

It seems it is created because I cannot continue using the application unless I press ESC in the keyboard. I guess that ESC is closing the window.