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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: