On 08/02/2014 11:27 AM, Dmitriy Purgin wrote: > Hi, > > If you pass this raw QString or QByteArray somewhere, why use QUrl > then? Anyway, try QUrl::fromPercentEncoding(): > > QUrl url("http://example.com?query=[{\"name\":\"value\"}]"); > qDebug() << QUrl::fromPercentEncoding(url.toEncoded()); > // produces: "http://example.com?query=[{"name":"value"}]" > > I should clarify that I need the QUrl because I need to pass it to a QNetworkRequest. That class only takes QUrls. I can't pass a string.
QUrl::fromPercentEncoding() produces a QString. That's not what I need. -- Lorne Sturtevant Sum Ergo Cogito _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest