PDA

View Full Version : Model Window not showing in Android



adutzu89
15th October 2016, 21:04
Can anyone help me understand why the following code doesn't work on Android?


import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Window 2.0

ApplicationWindow {
id: mainWindow
visible: true
height: 800
width: 600
x: 0
y: 0
title: qsTr("Test")
color: "blue"

Window {
id: searchLocationWindow
visible: true
height: mainWindow.height
width: mainWindow.width
x: mainWindow.x
y: mainWindow.y
color: "green"
modality: Qt.ApplicationModal
}
}


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

adutzu89
17th October 2016, 08:32
Meant Modal Window, would be nice to be able to modify title.

Apparently Dialog works ok, yet it is still strange why Window wouldn't work.

adutzu89
24th October 2016, 09:02
From what I have learned over my search throughout the internet, in Android, applications can have only 1 Window so I must use Dialogs to do my bidding.