PDA

View Full Version : QScrollArea wheel focus



bunjee
1st November 2007, 15:01
Hey guys,

I'm using a QScrollArea.
I'd like to have automatic wheel focus when I'm entering the cursor inside it.

Is it possible?

Thanks.

marcel
1st November 2007, 15:46
But you already do... If you scroll the wheel while mouse is on a scroll bar then it works by default/.

bunjee
1st November 2007, 16:21
I guess what I want to do is :

Set focus on a widget when wheeling inside it.

I'm using a QScrollArea inside another widget,
When it looses focus, I need to click it to get focus back, and then scroll.

jpn
1st November 2007, 17:59
So.. what's the problem? :) Did you try enforcing focus in wheelEvent()?