title: How to get focus on click, but keep it on mouse wheel in Qt?
body: <p>If I do <code>this-&gt;setFocusPolicy(Qt::WheelFocus);</code> then if I were to mouse wheel above the widget, it would get focus. If I were to do <code>this-&gt;setFocusPolicy(Qt::ClickFocus);</code> but then mouse wheel causes it to lose focus, even if the pointer is in the same widget. So, how do I get focus on click, but keep it on mouse wheel?</p>
  
  <p>Upon further investigation: the mouseWheelEvent is always processed after focus events. So trying to set a variable to remember whether this is due to a mouse wheel does not work. Furthermore, the reason given in the FocusReason is mouse in the case of a wheel or a click, so that doesnt help either.</p>