qurl

How to get the "query string" from a QUrl?

I have a QUrl and I need to extract the path+file+params. Basically everything but the hostname - what would be requested via HTTP. I looked through the Qt 4.6 docs but I couldn't find anything that looked like it would do this. What method(s) would I call? ...

[Qt] how to retrieve the string of a QUrl with space in it?

QUrl url("bword://blood transfusion"); QString res = url.toString(); Why I got the string "bword:" instead of "bword://blood transfusion"? How can I get the string "bword://blood transfusion" form the QUrl? ...