You are not logged in.

1

Wednesday, July 28th 2010, 8:22am

Hoow to Change Focus Movement using seperate widget

I have a requirement where i have to control the movement of focus on one widget from another widget, ie a have to move the focus on the 1st view using the D-Pad which is another widget, the focus moves to D-Pad and comes back to the main widget but it does not hilight the next widget. How to make it move to another widget??

Znurre

Trainee

Posts: 175

Location: Sweden

Occupation: Programmer

  • Send private message

2

Wednesday, July 28th 2010, 8:30am

Use setFocus().

3

Thursday, July 29th 2010, 7:50am

Thanks for the help but here the problem is that the focus can be any where in on the screen and im using the postEvent to generate the event so this cannot be directly done using setFocus() as i want to use the QT_KEYPAD_NAVIGATION property. I was still able to achieve this by setting the focus using setFocusProxy() and some modification in the event handling process.

Similar threads

Rate this thread