Re: Tab Order is Not Working
What doesnt work and what do you expect ?
Re: Tab Order is Not Working
Hi,
Quote:
#
QWidget::setTabOrder(CB1,CB2);
#
QWidget::setTabOrder(CB2,buttonBox);
#
QWidget::setTabOrder(CB3,buttonBox);
The Above code is not working.By Pressing arrow keys the focus doent move from CB1 to CB2
Regards
Re: Tab Order is Not Working
The focus moves by pressing 'Tab' key !!
not arrow keys ...
The function name itself says something :rolleyes:
Re: Tab Order is Not Working
But i want to change the focus through Arrow keys pls Guide me to do this one
Re: Tab Order is Not Working
Then you have to catch key press event in the parent widget, and use QWidget::focusNextChild to move the focus.
Re: Tab Order is Not Working
You also need to think carefully about why you would do such a thing. Users become accustomed to keyboard navigation that follows standards; imposing a non-standard way to navigate through a GUI is possible, but is often frustrating for users and therefore not a good idea.
To be sure, there are exceptions to everything, but you should think very carefully before inventing your own navigational paradigm.