PDA

View Full Version : Change key focus



sajis997
12th November 2011, 16:27
Hello forum,

In an application window there are many items and i believe there is some way to explicitly put focus on some of the items. I want to pit focus on the qgraphicsview widget when the window is loaded for the first time. How do i do this?

Lets take the Diagram Scene example . When is the window is first loaded the font combo box gets the initial focus and i want to change this so that the focus is set to something else when the window is first loaded


Regards
Sajjad

Santosh Reddy
15th November 2011, 05:38
QWidget::setFocus()
Documentation (http://doc.qt.nokia.com/4.7-snapshot/qwidget.html#setFocus)