PDA

View Full Version : SetFocus doesn't work on line edit.



bgougeon
8th June 2009, 23:22
Hi,

I got an issue with a QLineEdit. Even if I set the tab order to start at this line edit, once the screen is loaded the LIne Edit won't get the focus automatically.

I've also tried with this two lines :


this->activateWindow();
this->lineEdit_password->setFocus();


But this has still no effect.
So maybe someone experienced the same issue...

Thanks in advance for your help,
Boris

spirit
9th June 2009, 06:27
take a look at QWidget::setFocusProxy.