View Single Post
Posts: 237 | Thanked: 193 times | Joined on Feb 2010 @ Brighton, UK
#7
Originally Posted by Lullen View Post
I seem to understand how to create a JSON variable with incoming data but I do not really understand how to convert this to a QByteArray that is needed with the QNetworkRequest, any ideas?
QString::toUtf8() returns a QByteArray suitable for POSTing if UTF8 works for your needs.
 

The Following User Says Thank You to mr id For This Useful Post: