Determine signals connected to a given slot in Qt
Posted
by Cody Brocious
on Stack Overflow
See other posts from Stack Overflow
or by Cody Brocious
Published on 2010-05-03T01:10:58Z
Indexed on
2010/05/03
1:18 UTC
Read the original article
Hit count: 346
I've injected myself into a Qt application, and I'm attempting to figure out what signals a given slot is connected to, but can't find any information on doing this. Is there a mechanism for doing this out of the box? If so, is this exposed to QtScript? (If not, I can wrap it easily enough.)
If there is no such mechanism, what would be the best way to add it? I cannot manipulate the existing application outside of simple hooking, but I could hook QObject::connect and store the connections myself, just not sure if that's the best way to go about it.
© Stack Overflow or respective owner