I love you man !! hehe...
Yes, you are right.
Have to change the scene, instead of the view !
Still not quite understand the whole theory at the back, but it works now.
I'm using
after I reload a new image !Qt Code:
this->m_QTGraphicsScene->clear(); this->update();To copy to clipboard, switch view to plain text mode
And it seems I don't need to overload paintEvent() now.
Not quite sure whether this is the right solution, but this works for me.
The reason why I didn't want to use "addPixmap"
is because it has to do a conversion from QImage to QPixmap,
which I had guessed would slow down the process speed.
Thanks wysota.
Cheers
JIA
Bookmarks