[Interest] Breaking news, App steals keyboard focus.

Thiago Macieira thiago.macieira at intel.com
Fri Sep 6 17:35:24 CEST 2013


On sexta-feira, 6 de setembro de 2013 08:25:53, william.crocker at analog.com 
wrote:
> When my app starts up and appears on the screen it steals the
> keyboard focus away from whoever has it. (I do not currently
> call QWidget::activateWindow()).
> 
> Since this involves the window manager, there is probably not
> one answer. I am currently running under Gnome on RedHat
> Enterprise Linux at this time, so that is my primary concern.
> 
> So, how do I stop my QMainWindow based app from stealing the
> keyboard focus at start-up?

Well, you could simply configure your window manager's focus stealing 
prevention so that it won't happen.

You could also make sure that all your windows are only show()n without any 
other actions, like raise() or so.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130906/1c1dc970/attachment.sig>


More information about the Interest mailing list