Hi all,

I have created a QGraphicsPixmapItem class

Code:
class plane : public QGraphicsPixmapItem
{
public:
    plane();
    
protected:

    void mousePressEvent ( QGraphicsSceneMouseEvent * event );

};
I try to re-implement mouse event in .cpp :

Code:
void plane::mousePressEvent (QGraphicsSceneMouseEvent * mouseEvent)
{
    qDebug()<<"Touch!!";
}
but the result shows that , it has never get into the event, so is that possible to trigger mouse event in item class instead of scene class, because some problem is found if I implemented in graphicsScene......

Thanks in advance.