|
|
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
--Greg
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|