Quote Originally Posted by tbscope View Post
If you dynamically link your program, you can easilly inject another library that overrides some functions and thus you gain complete access to your program from an "external" source.

Edit: how this is done on Windows, I don't know. On linux you use LD_PRELOAD to load your custom library first.
You can always craft a custom QtCore library which will dump something to the console every time QObject::connect() and QMetaObject::metacall() are called. You can even make it read some configuration from an external source to dump only those things you are interested in.