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

QFileDialog::getOpenFileName with non-native option can not select a .app on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.6
    • None
    • macOS

    Description

      Only when using non-native dialogs on macOS, there appears to be no way to select a mac application (.app) using QFileDialog::getOpenFileName.

      When non-native, that call seems to treat Applications (.app) as normal directories and therefore will *not allow them to be selected.

      The native version of this call, properly handles Applications (*.app) as allowing them to be selected.

      Unfortunately the non-native version of QFileDialog::getExitingDirectory is not an option here as there appears to be no way to set a name filter to restrict things to .app.

      Using native versions of these Dialogs has previously had numerous problems under Qt 5.12.X where some are left hanging around and will not properly close so getting the non-native QFileDialog::getOpenFileName to actually select Applications (.app) as files would be quite useful.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kevinhendricks Kevin B. Hendricks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes