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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes