<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Grab focus in a multi window QApplication]]></title><description><![CDATA[<p dir="auto">Hi, I have a QApplication with multiple windows. On some of the windows, I have QWidgets grabbing the keyboard. On one window I have a complex application with many QWidgets. Now I'd like those QWidgets (text fields, scroll areas, and so on) to grab the keyboard whenever the mouse is clicked on them, so that the user can type in text. This works automatically with just a single window, but with multiple windows, it does not work. The keyboard is not grabbed, and if it is grabbed and someone types something in a text field, the text field looses focus immediately when typing starts. Text is written into it, but there is not blinking cursor.</p>
<p dir="auto">What is the right approach to grab focus for particular (or all) QWidgets on a window, if I run a multi window QApplication.</p>
]]></description><link>https://forum.qt.io/topic/55633/grab-focus-in-a-multi-window-qapplication</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 10:43:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/55633.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Jun 2015 09:06:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Grab focus in a multi window QApplication on Thu, 25 Jun 2015 19:50:12 GMT]]></title><description><![CDATA[<p dir="auto">What is the focus policy set to of the widgets, chance is that this is set to no focus, try setting it on strongfocus.</p>
]]></description><link>https://forum.qt.io/post/279705</link><guid isPermaLink="true">https://forum.qt.io/post/279705</guid><dc:creator><![CDATA[Richard]]></dc:creator><pubDate>Thu, 25 Jun 2015 19:50:12 GMT</pubDate></item></channel></rss>