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

Introduce QFile(QUrl) constructor

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes