[Qt-interest] need to define mousePressEvent to make mouseMoveEvent work?????

Yifei Li yifli at mtu.edu
Wed Nov 4 03:49:46 CET 2009


Hi,

I noticed this recently:

I add a custome widget to QGraphicsScene and implemented mouseMoveEvent for the custome QWidget class.

However, I need to define mousePressEvent(even its body is EMPTY) for mouseMoveEvent to work. Otherwise, my custome QWidget would not receive mouse move event.

Could someone tell me why is that?

Thanks

Yifei



More information about the Qt-interest-old mailing list