PDA

View Full Version : keyboard focus



JeanC
27th June 2008, 14:36
Hello,

Qt 4.4 on linux.
Is there a way to not let my app steal keyboard focus when it does it's show() on the mainwindow?

Thanks.

mcosta
27th June 2008, 14:41
Try with QWidget::clearFocus()

JeanC
27th June 2008, 16:40
Thanks.

Unfortunatly it does not work.



showfunction()
{
makesomethingnice();
show();
clearFocus();
}


This function gets called at startup and by a timer. But when I'm typing in some other app and this program starts or the timerevent fires I loose focus from the application where I'm typing.