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

QFileDialog hidden behind main window

XMLWordPrintable

    • Linux/X11
    • 0de4b326d8e02c228ebefcac1abe069c45cbb5c4 (qt/qtbase/5.12)

      In my application, the main window is usually displayed as fullscreen with the WindowStaysOnTopHint window flag set.
      If I then display the QFileDialog to open a new file, about half of the time the dialog is displayed behind the main window (I can see it, as the main window is partially transparent). Due to the window flag WindowStaysOnTopHint, I'm unable to bring it to the foreground (though keyboard navgation obiously still works). The other half of the time it works just fine.
      Also, the dialog keeps the same behaviour per session of my application (i.e., if it's displayed once behind the main window it will do so all the time until I quit the app, and vice versa)

      This happens whether it use the static QFileDialog::getOpenFileName() method or construct a QFileDialog object, setting its modality to true and display it via show(). This only happened since Qt 5.4.2, it worked before...

        1. filedialog.tar.gz
          0.7 kB
          Lukas Spies
        For Gerrit Dashboard: QTBUG-46626
        # Subject Branch Project Status CR V

            paeglis Gatis Paeglis
            luspi Lukas Spies
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes