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

QUrl should use trimmed url

    XMLWordPrintable

Details

    Description

      When an URL contains leading whitespace and an QUrl is created from that it results in empty url.

      QUrl myUrl(" http://www.google.com");
      qDebug() << "My url: " << myUrl.toString();
      
      ->
      $ My url:  ""
      

      Steps to reproduce:
      1. Run attached test app

      Expected:
      Url is printed.

      Actual:
      Empty string is printed.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            kileppal Kimmo Leppälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes