Thanks for your useful answer, I now know where to kind of start. My only problem is that I'm not at that level yet. I don't fully understand all the aspects of the general outline you provided.
May I ask you to be a bit more specific. My general questions are:
1. OK, I subclass QLabel. I guess I do it exacly like I subclassed MyWidget in the above example. So I guess the QLabel subclass is going to hold (under protected mousePressEvent(), mouseMoveEvent() and paintEvent(). Is it also going to create the m_pixmapLabel instance? If I put this in the QLabel subclass it needs to be in the appropriate constructor, meaning that I cannot add it to my mainLayout (which is subclassed in MyWidget).
2. Am I still going to have the MyWidget subclass for the pushbutton and everything else that is not the QLabel where the picture is going to appear?
3. How do I make the objects of the two different subclasses to interact? I mean how do I ensure that the mouse is going to work on the right object?
4. I guess my questions mostly all boil down to the fact that I am not getting how the mouse events work. Mouse seems to behave very differently from the usual signal/slot.
5. Maybe the easiest thing for me would be to look at some example code where people have done a similar thing. Do you know of any such postings.
Thanks a lot!