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

[REG 4.8.6->5.5] QUrl::toLocalFile() doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.5.0
    • Core: URL Handling
    • None
    • Xubuntu 14.04

    Description

      Just try to transform a QUrl to a string with toLocalFile() like this:

      QUrl url("/home/me/filename.txt");
      qDebug() << url << "\n" <<  url.toLocalFile();
      

      You get with Qt 4.8.6

      QUrl( "/home/me/filename.txt" )
      "/home/me/filename.txt"

      With Qt 5.5:

      QUrl("/home/me/filename.txt")
      ""

      Qt 5.5 returns only an empty string.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            hefeweizen Michael Mense
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes