URL in Qt4

I am trying to encode a URL when using Qt 4. It seems that in Qt 3 the method was QUrl::encode , but apparently QUrl was rewritten from Qt 3 to Qt 4. I looked through the documentation and did not see the equivalent method. Is something missing?

+7
qt qt4 urlencode
source share
3 answers

Also use QUrl :: toPercentEncoding to encode any QString without generating its URL.

+8
source share

Do you want QUrl::setEncodedUrl and QUrl::toEncoded

+1
source share

Qt3 support members for QUrl point to Steven Chu's answer. Just added a link as it may be useful.

0
source share

All Articles