PDA

View Full Version : QUrl old qt3 encodedpathandquery() = new ?



conti
18th April 2012, 10:01
Is there a new version for the old qt3 encodedpathandquerry() function?
I have a QUrl like this: http://www.host.com/workarea/inhere/xxxxxx/yyyyy.zzz
With the old function, the url could be cut to /workarea/inhere/xxxxxx/yyyyy.zzz.
It looks like the new toEncode() function was supposed to replace it but i cant find a switch to behave like the old function.
The only one switch with brings me closer to my goal is toEncode(QUrl::RemoveScheme) this only removes the http part. I can't find a bitmask to remove the host and the scheme.
I'm pretty much sure that there is a method to do this with QUrl that i just can't see.
Can anyone help me?

ChrisW67
18th April 2012, 10:40
QUrl::encodedPath() and, depending on the URLs, QUrl::encodedQuery() and QUrl::encodedFragment()