Hi,
I'm trying to use a QGraphicsView to show a set of images that I have loaded into a QList<QImage*>.
for (int i=0; i<m_qImageList.count(); i++)
{
ui.
graphicsView->setBackgroundBrush
(QPixmap::fromImage(*m_qImageList.
at(i
)));
//ui.graphicsView->update(); //This makes nothing that I can see
//ui.graphicsView->repaint(); //This makes nothing that I can see
}
for (int i=0; i<m_qImageList.count(); i++)
{
ui.graphicsView->setBackgroundBrush(QPixmap::fromImage(*m_qImageList.at(i)));
//ui.graphicsView->update(); //This makes nothing that I can see
//ui.graphicsView->repaint(); //This makes nothing that I can see
}
To copy to clipboard, switch view to plain text mode
The problem is that I only can see the last image.
I want to force all the images to be painted. I don't know if using the background brush is the correct way to do this.
Thanks,
Bookmarks