hi,
i am developing an nokia qt app. but the biggest problem is the memory full error on symbian devices (n8 and 5800 ) so i am try to download my pic. from their url and then displaying my code as bellow
this code is running in one time but when this page is called 2nd or 3th time memory problem disappearsitem::item(){
QNetworkProxyFactory::setUseSystemConfiguration(true);
QUrl url(imageurl);
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
connect(manager, SIGNAL(finished(QNetworkReply*)),
this, SLOT(updateImage(QNetworkReply*)));
manager->get(QNetworkRequest(url));
}
void item::updateImage(QNetworkReply *networkReply){
QImage image;
if (image.loadFromData(networkReply->readAll()))
{ ui->label->setPixmap(QPixmap::fromImage(image));
}
}
i need to clear the images which are downloaded before . is there any way to clean the memory ?
it is really urgent. Thank you..



