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

QUrl ( const QString & url ) / path() problem on windows for local files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 4.6.0
    • Core: I/O
    • None
    • Windows

    Description

      QUrl q("file:///c:/tmp/test.txt")
      qDebug() << q.path();

      will result as a path: /c:/tmp/test.txt

      which is not a valid filesystem path on windows. At minimum the documentation should point this out and direct the user to toLocalFile() which presumably does the expected thing.

      Attachments

        Issue Links

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

          Activity

            People

              tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
              grego Harri Pasanen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes