Hi,
I am trying to parse the image from the server and display it in a QListWidget.

I am having the image in an array as a QString.I had tried to convert the image into QBytearray and then parse that value for displaying the image but it not works.

This is the code which i had tried:

QString Image = image[i];
QByteArray u;
u.append(Image);



ui->listWidget->addItem(new QListWidgetItem(QIcon(Image),Name,ui->listWidget));


It just displays the listwidget and not the image.When i tried using QString it displays the URL of the image and not the image.

Can anyone help me to know where i was wrong.Is there anyone any additional code to be included?

Anyone come with the answer..

Thanks in advance,
Harish.M