[Qt-interest] QUrl deficiency?

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Sat Jul 10 14:45:44 CEST 2010


Why doesn't QUrl have any API's for manipulating the "path" part of a
URL similar to API's for altering the query params?

I need to change part of the path of a url. eg:

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!! :)

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