Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.14.2
-
None
-
Qt 5.14.2
Android 8.1.0
Android SDK 26.1.1
Java NDK 21.0.6113669
Java 1.8.0.241
Description
On Android, if an ApplicationWindow (or Window) is opened top of an other ApplicationWindow, the Back action on a FileDialog will display a weird result:
The screen displays the first ApplicationWindow (instead of expected second), but actions are those of second. So you can click on "ghost buttons" !
These 2 files reproduce the bug.
main.qml
import QtQuick 2.12 import QtQuick.Window 2.14 import QtQuick.Layouts 1.12 import QtQuick.Controls 2.14 ApplicationWindow { visible: true width: 640 height: 480 Button { id: btn anchors.centerIn: parent text: qsTr('Page 1: Load Window') onClicked: { loader.source = '' loader.source = '/window.qml' } } Loader { id: loader anchors.fill: parent } }
window.qml
import QtQuick 2.12 import QtQuick.Window 2.14 import QtQuick.Layouts 1.12 import QtQuick.Controls 2.14 import QtQuick.Dialogs 1.2 Window { visible: true width: 640 height: 480 Button { id: btn anchors.centerIn: parent text: qsTr('Page 2: Open File...') onClicked: dfuSelectDlg.open() } Label { id: label anchors.top: btn.bottom anchors.horizontalCenter: btn.horizontalCenter } FileDialog { id: dfuSelectDlg visible: false folder: shortcuts.home selectMultiple: false selectFolder: false nameFilters: ["Binary files (*.bin)"] onAccepted: { label.text = dfuSelectDlg.fileUrl } } }