Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83789

Back fails after FileDialog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Component/s: Quick: Dialogs
    • Labels:
      None
    • Environment:
      Qt 5.14.2
      Android 8.1.0
      Android SDK 26.1.1
      Java NDK 21.0.6113669
      Java 1.8.0.241
    • Platform/s:
      Android

      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
              }
          }
      }
      

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            jean-noel Jean-Noël Pioche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes