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

Dave Schuhman dave130980 at hotmail.com
Thu Jun 18 19:25:59 CEST 2009


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?

Cheers,
David

_________________________________________________________________
http://redirect.gimas.net/?n=M0906xFTP_SpringCampaign2_WW
--> Für Fotos hier abdrücken <-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090618/cdf2c895/attachment.html 


More information about the Qt-interest-old mailing list