I've been trying using this code, but failed:
QHttp *http;
http->setHost("subdivx.com");
http->get(QUrl::toPercentEncoding("/index.html"));
QByteArray text = http->readAll();
ui->textBrowser->setText(text);
As you can see, I just want to display the html code of some web page in a textBrowser.
What am I doing wrong here? Please, I need your help!
Thanks in advance!
Bookmarks