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

QFileDialog::getOpenFileName() disabled file issues with sandboxed app under OS X 10.9 (Mavericks)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 4.8.6, 5.2.0 RC1
    • 4.8.5, 5.1.1
    • None
    • Mac OS X 10.9 (Mavericks) built on Mac OS X 10.8.5
    • macOS

      When a sandboxed (i.e. signed with entitlements) application is run on Mac OS X 10.9 (Mavericks) calling the QFileDialog::getOpenFileName() method shows some files with a matching file extension greyed out. Even though com.apple.security.files.user-selected.read-write has been requested in the entitlements file and the filter parameter to getOpenFileName() is correct these files are greyed out when not in a folder that has a matching entitlement requested. However, files that are under the Music folder, for example, where com.apple.security.assets.music.read-only is also requested do allow files with the filtered file extension to be opened.
      NB: A workaround to allow opening a greyed out file is to right click on the file and choose 'Quick Look' in the file open dialog. That file then becomes selected and can be opened.

        1. mavericks2.zip
          5 kB
          Peter Cheeseman
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            dedietri Gabriel de Dietrich (drgvond)
            pcheeseman Peter Cheeseman
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes