First write a stub of int printf( const char * format, ... ) function and see if you can convince the linker to use it instead of standard printf() (it might not work for libraries). Then you will need a singleton QObject that will emit a signal each time your custom printf() is invoked.
Bookmarks