qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] Passing custom Events from Child to Parent.

Subject: Re: [Qt-interest] Passing custom Events from Child to Parent.
From: Andre Somers
Date: Tue, 01 Dec 2009 13:00:14 +0100
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é

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>