[Qt-interest] Passing custom Events from Child to Parent.
Andre Somers
andre at familiesomers.nl
Tue Dec 1 13:00:14 CET 2009
Nitin Mahajan wrote:
> I need to pass some custom events from a child to parent. The parent, handles all such custom events separately.
>
> I think in this case it would be safest / best to get a custom event type for each event by calling QEvent::registerEventType().
>
> Now the question is, Whats the best way to communicate these custom event types to the child?
>
> regards
>
> -Nitin
>
>
I guess that depends on who decides who handles what. If the child
itself decides, you should probably pass the event up yourself. If the
parent should decide, I'd simply install an event filter on the children
and intercept the events before they arrive at the child.
André
More information about the Qt-interest-old
mailing list