thank you guys for the QEventFilter, i never knew about it it solved my problem.

regards.