[Qt-interest] QUrl::path() leading slash bug?

Thiago Macieira thiago.macieira at trolltech.com
Fri Jan 9 08:41:08 CET 2009


Anthony Serdyukov wrote:
>By the way, I have noticed some interesting and unexpected behavior.
>Invoking const method causes other method to change it's return value!
>
>                QUrl url("test.txt");
>                url.setHost("some.net");
>                url.setPort(1234);
>                qDebug() << url.toEncoded();
>                url.path();
>                qDebug() << url.toEncoded();
>
>output is following:
>"//some.net:1234test.txt"
>"//some.net:1234/test.txt"
>
>Is this a bug?

It looks very much like it, yes.

Can you send us a reminder via our bug tracking system, please?

PS: any chance you can try Qt 4.5 too? I know I changed some code relating 
to non-absolute paths.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090109/9a95f720/attachment.bin 


More information about the Qt-interest-old mailing list