I'm trying to encode a URL while using Qt 4. It looks like in Qt 3, the method was QUrl::encode
, but apparently QUrl
was rewritten from Qt 3 to Qt 4. I looked in the documentation and didn't see any equivalent method. Is there something I'm missing?
Also use QUrl::toPercentEncoding to encode any QString without forming it to a URL.
You want QUrl::setEncodedUrl
and QUrl::toEncoded
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With