Is there any way to observe all signals which are emitted?
PS. Of course we can write slots for all signals, but that is not I want.
What do you mean by observing? Do you need real time feedback on console, or is logging to file on program exit enough?
If you need real time feedback on console, you can check then implementation of QTest. There is a -vs command line switch (Qt doc) which enables all signals printout on console (or you can just run your QTest tests with -vs switch, if you need the signals info only in tests, not in actual application).
The other way is to use QSignalSpy class. It's not ideal however, because you need one spy per every signal, and you have to print the observed signals periodically (there are no notifications in QSignalSpy).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With