The code:
http
= new QHttp("http://localhost",
80);
http->get("http://localhost/easyadvice/images/logo.jpg", 0);
.
.
.
void ChatUi::readLogo(){
tbLogo->append(logo);
}
http = new QHttp("http://localhost", 80);
http->get("http://localhost/easyadvice/images/logo.jpg", 0);
connect(http, SIGNAL(requestFinished( const QHttpResponseHeader & )), this, SLOT(readLogo()));
.
.
.
void ChatUi::readLogo(){
QString logo = http->readAll();
tbLogo->append(logo);
}
To copy to clipboard, switch view to plain text mode
It should append the logo to the QTextBrowser, why it is not there ?
Am I missing something else in the code ?
Bookmarks