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

QFileDialog static functions (getOpenFileUrl, etc.) should support mime type filters

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.5.0 FF
    • None

      Mime-type filtering was added for 5.2 in https://codereview.qt-project.org/c/qt/qtbase/+/63345 but the static functions were not improved in this way. So the most-convenient API to open a file with a one-liner does not take advantage of the built-in translations (so that "Text files (*.txt)" or whatever will always be provided by Qt, and translated the same way): users need to create and exec() an actual instance to take advantage of the new API. That's unfortunate, and leads to complicating our own examples too, as in https://codereview.qt-project.org/c/qt/qtwebengine/+/431180/2

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes