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

Introduce QFile(QUrl) constructor

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • None
    • Core: URL Handling
    • None

    Description

      People simply fail to get it right, I see it every month, either in #qt or in customer code. We need the API to make it easier and more foolproof. Otherwise users do QFile f(url.toString()), or other creative ways.

      A QFile(QUrl) might not be the most elegant, since not all QUrls represent a local file, but neither is QFile(QString), as not all QStrings represent a path.

      Not to mention qrc, where things get even more hairy, where the user must check for url.scheme() == "qrc" and prepend ":" himself, currently.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              iamsergio Sergio Martins
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes