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

On macOS, after opening QFileDialog in a dialog, mainWindow will be forcefully shown on top.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.5.2
    • GUI: Window management
    • None
    • Qt 6.5.2
      MacBook Air M1 (arm64)
    • macOS

      It reproduces this problem stably on macOS but not on Windows. It may be related to QTBUG-116301.

      step.1

      open one or more dialogs in mainWindow

      step.2

      open QFileDialog in dialog

      step.3

      When one QFileDialog is opened, mainWindow will be forcefully shown on top.

       

      In the test program, mainWindow will be forcefully shown on top when open QFileDialog, regardless of whether the parent object is mainWindow or nullptr

      However, in qBittorrent, it is affected by the presence of a parent object.

       

      some videos of behavior

      test program : https://imgur.com/a/qFpSQDH
      qBittorrent : https://imgur.com/a/VFq2GKB

       

      Similar to https://github.com/qbittorrent/qBittorrent/issues/19072

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

            vestbo Tor Arne Vestbø
            htt X C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes