Qt-interest Archive, March 2002
missing wheelEvent
Message 1 in thread
Windows 2000, Qt 3.0.1, and 3.0.2
My widget reimplements QWidget::wheelEvent()
But my wheelEvent() is never called...
...until I click the mouse in another application
After that when I return to my app, the wheel works fine.
If I delete the widget and create it again, I have to go through the same
procedure to get the wheel to work.
I only started seeing this behaviour in the last couple of weeks, I can't
think what has changed
If I reimplement QWidget::event() I see the same thing (no events of type
31)
Other events like mousePressEvent() work fine
Other widgets in my application like lists and combos can use the wheel OK
Anyone come across behaviour like this?
--
[ signature omitted ]
Message 2 in thread
> On Thursday 28 March 2002 13:12, Paul Robertson wrote:
> > Windows 2000, Qt 3.0.1, and 3.0.2
> >
> > My widget reimplements QWidget::wheelEvent()
> > But my wheelEvent() is never called...
> > ...until I click the mouse in another application
> > After that when I return to my app, the wheel works fine.
> > If I delete the widget and create it again, I have to go through the
same
> > procedure to get the wheel to work.
> >
> > I only started seeing this behaviour in the last couple of weeks, I
can't
> > think what has changed
> > If I reimplement QWidget::event() I see the same thing (no events of
type
> > 31)
> > Other events like mousePressEvent() work fine
> > Other widgets in my application like lists and combos can use the wheel
OK
> >
> > Anyone come across behaviour like this?
>
> try
> setFocusPolicy (WheelFocus);
>
> in your widget if that helps...
>
Thanks,
Hmm, it changes the behaviour, but not really how I want it.
I am trying some other tricks with setFocusPolicy() maybe I can get it to
work right
--
[ signature omitted ]