Not unless you tell us what you are starting with. The few lines you have posted are not sufficient for us to know what you actually have as input.
Not unless you tell us what you are starting with. The few lines you have posted are not sufficient for us to know what you actually have as input.
void screen::content(QList<QString> name,QList<QString> category,QList<QString> image)
{
QListWidget *list = new QListWidget(0);
list->setIconSize(QSize(70,70));
QStringList strList;
for(int i=0 ; i<name.count(); i++)
{
QString Name = name[i];
QString Image = image[i];
QNetworkAccessManager *nam = new QNetworkAccessManager(this);
connect(nam, SIGNAL(finished(QNetworkReply*)),this, SLOT(finished(QNetworkReply*)));
QByteArray myData("image");
nam->post(QNetworkRequest(QUrl("image")),myData);
QString f = Name ;
ui->listWidget->addItem(new QListWidgetItem(QIcon("reply"),f,ui->listWidget));
}
this->showFullScreen();
}
voidscreen::replyFinished(QNetworkReply *reply)
{
reply->readAll();
}
This is my code in which i am trying to parse the image from the server.I dont know how to parse the image into the listwidget i had tried this level.Help me out to get the answer?
Regards,
Harish.M
Last edited by harish; 7th December 2011 at 09:43. Reason: spelling corrections
Bookmarks