My appln need to change focus from current listbox to the pushbutton in the screen when a specific key pressed.
How can i make this happen?
mahe2310
My appln need to change focus from current listbox to the pushbutton in the screen when a specific key pressed.
How can i make this happen?
mahe2310
Em...why you don want use TAB ?
p.s. sorry man but are you dont take solution from your previous thread
Last edited by zlatko; 9th March 2006 at 10:01.
a life without programming is like an empty bottle
i dont want to use all the keys in my application.Originally Posted by zlatko
So on Right arrow press i just want to propagate to pushbutton.
i do use all helps suggested by u ppl.
I am able to deal with my listbox as i need except changing focus...
Can u help me...
Mahe2310
have you catch specified key pressed?
a life without programming is like an empty bottle
Originally Posted by zlatko
yes...
mahe2310
put next code in your handler
Qt Code:
if ( listBox->hasFocus()) pushButton->setFocus();To copy to clipboard, switch view to plain text mode
a life without programming is like an empty bottle
Originally Posted by zlatko
I got a doubt... Where should i call this function. Is it possible at ListBox::keyPressEvent()?
Mahe2310
You need call this code there where you catch your arrow pressed
a life without programming is like an empty bottle
Originally Posted by zlatko
sorry... it is nt working...
mahe2310
Bookmarks