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

QFileDialog::getOpenFileNames returns immediately when GUI created via mixed Q(Core)Application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.9.0
    • None
    • macOS 15.4
    • macOS

    Description

      I have an application which can be started as GUI or scripting. Hence I followed the Qt documentation to start it as GUI (QApplication) or scripting (QCoreApplication) depending on the command line arguments.
      This all works perfectly on Linux and macOS, but under macOS 15.4 it doesn't work anymore, in the sense that QFileDialog::getOpenFileNames() (GUI) is returning an empty file list without even showing up. 
      I have attached a boiled down example which reproduces this, both for Intel and Apple Silicon.

      macOS 15.4 (24E248)
      Xcode 16.3
      xcode-select version 2409

      Qt 6.9 (home-brew (Apple Silicon) / macports (Intel))

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            sa35 Andreas Suter
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes