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

QUrl constructor fails to parse UNC paths

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.9.0, 5.10.0, 5.11.0
    • Core: I/O
    • None

      When QUrl receives an UNC path (\\somehost\somepath, used for network shares on Windows) it will not parse the path correctly (ie, call setHost).

      QUrl::fromLocalFile has some code to handle this case but it's not called from QUrl::QUrl(QString)

      Besides the attached tests, the issue shows up when using FolderListModel to browse any network share, as it uses QUrls internally.

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

            thiago Thiago Macieira
            correa Thiago Augusto Correa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes