[Qt-interest] How to iterate over receivers connected to a signal?

Thiago Macieira thiago.macieira at trolltech.com
Thu Jun 18 20:35:06 CEST 2009


Dave Schuhman wrote:
>Hi Tom,
>
>thanks for your reply.
>
>>The short answer is: you can't. Qt purposefully doesn't provide this
>>since a "well-written" program shouldn't need it. The logic is similar
>>to why you can't know what function called the current function.
>
>I need it because I want to serialise QObjects and for this purpose such
> reflective functionality would indeed be very usefull.
>
>What approaches do you guys take when serialising signals/slots of
> QObjects?

We usually don't. QObjects aren't meant to be copiable, so they aren't 
serializable either.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090618/475503a3/attachment.bin 


More information about the Qt-interest-old mailing list