hai anda_skoa,
i have done as you said, but when i check the memory by launching task manager, the memory keep on increasing in a normal way. i have used Image.scaled(QSize(50,50)); to resize the image then created pixmap item.
below is the changed code.
m_scene->setSceneRect(0,0,55*f_totalFrames,55);
foreach(allFrames)
{
tempImage.
scaled(QSize(50,
50));
imageItem->scale(0.1,0.1);
m_scene->addItem(imageItem);
imageItem->setPos((f_frameNum*50)+10,0);
}
m_scene->setSceneRect(0,0,55*f_totalFrames,55);
foreach(allFrames)
{
tempImage.scaled(QSize(50,50));
QGraphicsPixmapItem* imageItem = new QGraphicsPixmapItem(tempImage);
imageItem->scale(0.1,0.1);
m_scene->addItem(imageItem);
imageItem->setPos((f_frameNum*50)+10,0);
}
To copy to clipboard, switch view to plain text mode
thanks .
Bookmarks