Okay, I want to record actions with the program (with the interface). And save this data in log file.
I want to install global eventFilter, so that work with everyone object at once. I don't want to install unique eventFiletr for all objects in my app. Quantity and type of objects are unknown in advance.
The idea itself is to put this code into a separate class and include it as needed (a utility class).
Overloading event() - yes i know about it. But this will force me to overload the event() in all objects. It's complicated.
Therefore, in my opinion, the best option of all is to use:
Qt Code:
qApp->installEventFilter(this);To copy to clipboard, switch view to plain text mode
Bookmarks