PDA

View Full Version : Change focus on QToolBox



mattia
20th December 2007, 08:50
Hello, i have a QToolBox with 3 widgets in.
When i start my application the focus is set on number 0 Widget.
I'd like to change the focus at runtime, even if no one signals is emited by QToolBox.
Is it possibile?
I didn't find any suggestion here
http://doc.trolltech.com/4.2/qtoolbox.html
thx

jpn
20th December 2007, 08:56
Are you actually talking about focus or perhaps you mean the current index of QToolBox?

In case you really are talking about focus; every widget might be able to receive focus, depending on its focus policy. Therefore QToolBox docs are not the correct place to search. QToolBox is a QWidget like all other widgets. Search QWidget docs for "focus".

In case you are actually talking about current index of the QToolBox, I suggest trying to search QToolBox docs a bit harder. ;)