[email protected]
[Top] [All Lists]

Re: Grouping signal/slot-connections

Subject: Re: Grouping signal/slot-connections
From: Gregory Seidman
Date: Thu, 27 Sep 2007 10:23:21 -0400
On Thu, Sep 27, 2007 at 10:10:49AM -0400, Justin Noel wrote:
> Christopher Rasch-Olsen Raa wrote:
>> Hi all,
>> Say I create x-thousand instanses of some object. Is there some way to do 
>> signal/slot-connections on them without doing it explicitly on each 
>> object? Like some sort of grouping, or some way of genericly saying that 
>> "any objext Y's slot Z should respond to signal K from object/class L"?
> Way back when in 2004 ICS held a Qt Conference in Boston and Gregory 
> Seidman presented a paper on a Publish/Subscribe system in Qt using a 
> singleton relay object. I wish I could find the paper, but here is the 
> gist:
> The Singleton Relay Object has a big block of pre-defined signals.
> The publishers do a SIGNAL-SIGNAL connection to the Rely signal they want 
> all the subscribers to get.
> The subscribers do a SIGNAL-SLOT connection from the Relay signal and will 
> in turn get all the signals from the publishers.

Nicely explained, and I'm pleased that someone remembered that. If anyone
is interested I think I can dig up the slides from that talk.

> Hope this helps,
> --Justin

To unsubscribe - send a mail to [email protected] with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

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