Intercepting mouse wheel events of a QTreeWidget with scrollbars
I have a QTreeWidget with some content and active scrollbars. I want to receive its wheel events ahead of it, so that I can do some stuff as needed. I tried implementing eventFilter and installing it on the said QTreeWidget, I only receive the desired event if it wasn't consumed by the scroll area, i. e., if it is already scrolled to its limit in the direction of mouse wheel rotation.
Is there any way to receive events ahead of QTreeWidget without subclassing it?