How to add more items in QListWidget ?
Below is the code I am using, it gives error as "memory full" in device (N8)
void gotItem(IndividualSearchData *item)
Cell* cell = new Cell();
QListWidgetItem *dataItem= new QListWidgetItem(ui->listWidget);
Cell is a sub class of of QWidget and contains three labels "title", "discription" and pass url as parameter.
The cell download the image from this url.
The gotItem method is called for about 400-500 times(whenever we get data from server)
I checked with memory, it keeps on increasing, but how to reduce this ?
Please let me know how to achieve this.
Thanks in advance