[Qt-interest] QUrl::path() leading slash bug?
Anthony Serdyukov
uksus70 at gmail.com
Fri Jan 9 10:02:02 CET 2009
I have reported a bug.
UNfortunately, I can't try it on 4.5
2009/1/9 Thiago Macieira <thiago.macieira at trolltech.com>:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Regards,
Anthony
More information about the Qt-interest-old
mailing list