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

QUrl::setAuthority(QString()) doesn't remove an existing authority

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Some future release
    • 4.6.0
    • Core: URL Handling
    • None
    • debian amd64

    Description

      QUrl::setAuthority(QString()) doesn't remove an existing authority
      testcase:

      QUrl url("http://example.com/something");
      qDebug() << url.toString(); // output is "http://example.com/something"
      url.setScheme(QString());
      url.setAuthority(QString());
      qDebug() << url.toString(); // output is "//example.com/something" instead of "/something"
      

      Attachments

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

        Activity

          People

            xizzhu Xizhi Zhu (Steven)
            pfister Christoph Pfister
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes