hi All,
I have some questions ,need your help!
the codes as follows:
QGraphicsScene* scene=new QGraphicsScene(this);
QGraphicsView* mainview=new QGrahphhicsView(scene);
QGraphicPixmapItem* piximg=scene->addPixmap(QPixmap(filename));//filename is the opened image filename.
.......
the question are:
1: how to catch the mouse events in the scene? should I reimpliment some methods a class derived from the class QGraphicsScene?
2:if I want to get a part of the image rectangle field ,how can i do it?
thank you!
Bookmarks