Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt 5.8 RC on Android: FileDialog opens behind Popup
Forum Updated to NodeBB v4.3 + New Features

Qt 5.8 RC on Android: FileDialog opens behind Popup

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 648 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    J0hnny
    wrote on last edited by
    #1

    This is what happens when I try to run the code below on Android 4.1.1 device.
    Press "Open popup", then "Open FileDialog": FileDialog is opened, but it is positioned behind the Popup. How can I make FileDialog show up in front of the Popup? Tweaking the "modality" property of FileDialog and "z" property of Popup did not help. And yes, I need the Popup to be modal.
    When buildling wIth Qt 5.7, FileDialog is displayed correctly on the same Android device, that is, in front of the Popup. So, is this a bug introduced in 5.8 RC? Should I file a bug report?

    import QtQuick 2.7
    import QtQuick.Controls 2.1
    import QtQuick.Layouts 1.3
    import QtQuick.Dialogs 1.2
    
    ApplicationWindow {
        visible: true
        width: 640; height: 480
        title: qsTr("Hello World")
    
        Button { text: qsTr("Open popup"); onClicked: popup.open() }
    
        Popup {
            id: popup
            x: 220; y: 140; width: 200; height: 200
            modal: true
            Button { text: qsTr("Open FileDialog"); onClicked: fileDialog.open() }
            // z: -1 // Does not help.
        }
    
        FileDialog {
            id: fileDialog
            title: qsTr("File dialog")
            // modality: Qt.ApplicationModal // Does not help either.
        }
    }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can't check that but from your description it looks like a change of behaviour. You should first search the bug report system to see if it's something known. If not then yes, open a new report providing a minimal compilable example showing the behaviour.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        J0hnny
        wrote on last edited by
        #3

        Filed a bug QTBUG-57859

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved