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

QUrl::toLocalFile() does not work right

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.6.1
    • Core: URL Handling
    • None
    • Mac OS 10.6.2

    Description

      QUrl should conform (as assistant says) to:
      http://www.rfc-editor.org/rfc/rfc1738.txt
      and in this case
      ; FILE
      fileurl = "file://" [ host | "localhost" ] "/" fpath

      and that means also that QUrl("file://localhost/file.txt").toLocalFile() should (or could) return "/file.txt" but instead i get "//localhost/file.txt" which QFile::exists("//localhost/file.txt") == false
      workaround is to remove "//localhost

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            chain Tõnu Jaansoo
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes