PDA

View Full Version : Mouse Event - source of event?



PowerPlate
26th October 2011, 20:07
Hello

Following structure:
Scene -> MainWindow -> Another Item -> QGraphicSimpleText

How can I know in the MainWindow, if someone clicked on the text?
I didn't find anything in the MouseEvent class which would suggest me a simple solution.

Can someone give me a piece of advice?

Spitfire
27th October 2011, 10:46
Maybe this (http://doc.qt.nokia.com/stable/qobject.html#installEventFilter) (more (http://doc.qt.nokia.com/stable/eventsandfilters.html#event-filters))?