when sending the image from one class to another class application is crashing..
Code..
if(http_id == id && http->lastResponse().statusCode() == 200)
{
QCache<QString,QPixmap>imageCache;
image.loadFromData(imagedata);
imageCache.insert(requestByEntry.key(id),&image);
Form f;
f.set(*imageCache[URL]);
buffer->close();
}
if(http_id == id && http->lastResponse().statusCode() == 200)
{
QPixmap image;
QCache<QString,QPixmap>imageCache;
QByteArray imagedata = buffer->data();
image.loadFromData(imagedata);
imageCache.insert(requestByEntry.key(id),&image);
Form f;
f.set(*imageCache[URL]);
buffer->close();
}
To copy to clipboard, switch view to plain text mode
void Form
::set( const QPixmap image
) {
m_ui->label->setPixmap(image);
this->show();
}
void Form::set( const QPixmap image)
{
m_ui->label->setPixmap(image);
this->show();
}
To copy to clipboard, switch view to plain text mode
Bookmarks