[Qt-interest] QUrl deficiency?

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Sat Jul 10 14:56:08 CEST 2010


> I have a url - "http://server/A/B/C" and I want to manipulate it to
> get something like "http://server/A/D/E". Could not find anything in
> QUrl to help me with this problem.
>
> I can use the resolved() API to append the "D/F" relative path. But I
> need to get to "http://server/A" part first!! :)

I found something close to what I wanted. I can use setPath("A/D/E")
on the url. This completely replaces the existing path. It would've
been nice to have the add/remove kind of API for paths too though.

-mandeep

>
> If there's nothing in QUrl then I guess manipulating the string
> version of it is the only option left.
>
> -mandeep
>



More information about the Qt-interest-old mailing list