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
this->m_QTGraphicsScene->clear();
this
->m_QTGraphicsScene
->addPixmap
(QPixmap::fromImage(*this
->m_QTImage
));
this->update();
this->m_QTGraphicsScene->clear();
this->m_QTGraphicsScene->addPixmap(QPixmap::fromImage(*this->m_QTImage));
this->update();
To copy to clipboard, switch view to plain text mode
after I reload a new image !
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

Originally Posted by
wysota
Yes.
Because it's much more complex than a simple QWidget and it works in a different fashion.
If you are so smart then why are you asking the questions and why is your code failing to work?
BTW. you fail to see the difference between "subclass of" and "type of".
Please just set the background brush for your scene as I told you if you want an immediate effect and then devote some time to study the documentation of graphics view architecture.
Bookmarks