#include <QtNetwork>
QNetworkAccessManager* netAccManager = new QNetworkAccessManager;
#include <QNetworkAccessManager>
#include <QBuffer>
#include <QByteArray>
#include <QHttp>
#include <QIODevice>
#include <QSplashScreen>
#include <QPixmap>
QNetworkAccessManager* netAccManager = new QNetworkAccessManager;
QNetworkRequest request(QUrl("http://www.newsunlk.com/image/
product/hp_pavilion_dv6.jpg"));
QNetworkReply *reply = netAccManager->get(request);
QEventLoop loop;
QObject::connect(reply,SIGNAL(finished()),&loop,SLOT(quit()));
loop.exec();
QByteArray bytes = reply->readAll();
QImage img(20, 20, QImage::Format_Indexed8);
img.loadFromData(bytes);
ui->item_imagelabel_2->setPixmap(QPixmap::fromImage(img));