Can anyone help me understand why the following code doesn't work on Android?

Qt Code:
  1. import QtQuick 2.5
  2. import QtQuick.Controls 1.4
  3. import QtQuick.Window 2.0
  4.  
  5. ApplicationWindow {
  6. id: mainWindow
  7. visible: true
  8. height: 800
  9. width: 600
  10. x: 0
  11. y: 0
  12. title: qsTr("Test")
  13. color: "blue"
  14.  
  15. Window {
  16. id: searchLocationWindow
  17. visible: true
  18. height: mainWindow.height
  19. width: mainWindow.width
  20. x: mainWindow.x
  21. y: mainWindow.y
  22. color: "green"
  23. modality: Qt.ApplicationModal
  24. }
  25. }
To copy to clipboard, switch view to plain text mode 

It works on Ubuntu 16.04.1 AMD64, but on Android the "searchLocationWindow" doesn't show at all, it's opened because it doesn't receive the "back" command but it isn't visible.
Tried with both Qt 5.5.1 and Qt 5.6.2 on Android 5.0.1