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

Allow URLs in QFileDialog AcceptOpen mode on Windows.

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Technical Risk:
      Normal
    • Commits:
      8045ccc382ac91c14849e10f37d9a8d0605dc562 (qt/qtbase/5.12)

      Description

      Windows native file dialogs support opening URLs directly, but this workflow is not supported (and even broken) in Qt.

      Take a provided Image Viewer example (qtbase\examples\widgets\widgets\imageviewer), press File > Open, enter "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" in the "File name" field, press Open. -> No image is loaded, the app window becomes unresponsive and can't be closed.

      Take any native app, like mspaint (or Google Chrome or whatever), perform the same steps - the image will be opened.

      5.12.3 windows ()
       https://doc-snapshots.qt.io/qtforpython/_static/pysidelogo.png
      QUrl(https://doc-snapshots.qt.io/qtforpython/_static/pysidelogo.png)
      Unable to create a local copy of QShellItem(attributes=0x400004 [stream], normalDisplay="https://doc-snapshots.qt.io/qtforpython/_static/pysidelogo.png", desktopAbsoluteParsing="https://doc-snapshots.qt.io/qtforpython/_static/pysidelogo.png", urlString="https://doc-snapshots.qt.io/qtforpython/_static/pysidelogo.png", fileSysPath=""", url=QUrl(https://doc-snapshots.qt.io/qtforpython/_static/pysidelogo.png))
      DialogResult= 0
      

        Attachments

        1. qtbug71785.diff
          0.9 kB
        2. qtbug71785.zip
          2 kB

          Issue Links

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

            Activity

              People

              • Assignee:
                qt.team.quick.subscriptions Qt Quick and Widgets Team
                Reporter:
                johnpreston John Preston
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes