Functions connected to signals in QtScript (on Qt 4.5.2) are not firing

Posted by Cody Brocious on Stack Overflow See other posts from Stack Overflow or by Cody Brocious
Published on 2010-05-03T14:23:31Z Indexed on 2010/05/03 14:28 UTC
Read the original article Hit count: 1245

Filed under:
|
|

I've injected into a proprietary Qt (4.5.2) application, added my own compatible build of QtScript, and have managed to get access to all the signals I need. However, when connecting to them (via QtScript) my functions are never called.

I've come up with a few theories for why this is and I've tested everything I can think of, but I've hit a bit of a wall. Note, I've never had any connection exceptions whatsoever. Here are my current theories:

  • The signals I'm connecting to are already connected to other slots, and that's somehow blocking it (but as far as I know, all Qt signals fire to all slots with no extra work, and can't be restricted in this way)
  • The signals are rejecting my connection, or disconnecting me after connection (but I see no facility for this)
  • My connection is happening from another thread, and this is somehow causing it not to connect properly

Are any of these theories plausible? If not, what have I missed?

© Stack Overflow or respective owner

Related posts about qt

Related posts about qtscript