A senior developer in my team used traditional C-style callbacks in our Qt application instead of using Qt signal/slot mechanisms.
My first reflex would be to replace his code and use Qt signal/slot instead.
Is there any good reasons to use callbacks in a Qt application/library?
Thanks.
I think the better approach would be to embrace the framework you are using and use signal/slots.
That being said, if the code in question works, and is not ugly or causing problems, then you may be best to leave it alone.
Consulting the Signal/Slot documentation describes why the Signal/Slot approach is better:
Do be aware of the following though:
The speed probably doesn’t matter for most cases, but there may be some extreme cases of repeated calling that makes a difference.