Quote Originally Posted by high_flyer View Post
I still don't understand what it is you want to do.
What is the goal you are after?
Okay, I want to record actions with the program (with the interface). And save this data in log file.

Quote Originally Posted by high_flyer View Post
which events do you need form which objects?
If you want to filter the button events, you can install an event filter on the buttons.
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.

Quote Originally Posted by high_flyer View Post
Also, do you really need to fileter event by another object?
The idea itself is to put this code into a separate class and include it as needed (a utility class).

Quote Originally Posted by high_flyer View Post
Are you aware you can process events in the objects themselves by overloading event() or specialized event handler?
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:
  1. qApp->installEventFilter(this);
To copy to clipboard, switch view to plain text mode