<?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[Reliably triggering Ubuntu 22.04 GNOME OSK from QLineEdit (Without Wayland &#x2F; Without qtvirtualkeyboard)]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I am developing a Qt 6.5.3 C++ Widgets application running on an Ubuntu 22.04 touchscreen IPC. Wayland is disabled (strictly using an X11/Xorg session).</p>
<p dir="auto">I cannot use the GPLv3-licensed qtvirtualkeyboard. I need to use Ubuntu’s native GNOME On-Screen Keyboard (OSK).</p>
<p dir="auto"><strong>The Issue:</strong><br />
When a user taps inside a Qt QLineEdit, the default GNOME OSK behaves erratically—sometimes it pops up, but most of the time it doesn't trigger at all. This unreliability happens on a completely stock Ubuntu installation, I tried installing the "Improved OSK" GNOME extension and tested it and it's the same behaviour.</p>
<p dir="auto">Currently, I am using a workaround where I launch the <strong>onboard keyboard</strong> utility via QProcess on focus events. While this works, it feels like an unnecessary external dependency hack.</p>
<p dir="auto"><strong>Questions:</strong></p>
<ul>
<li>
<p dir="auto">Is there a way to make Qt 6 text widgets properly communicate focus changes to the GNOME/X11 accessibility layer so the native OSK triggers 100% of the time?</p>
</li>
<li>
<p dir="auto">What is the correct D-Bus interface/method under Ubuntu 22.04 to manually force the default GNOME keyboard to show/hide from C++?</p>
</li>
</ul>
<p dir="auto">Any insights on bridging this Qt-to-GNOME input gap would be greatly appreciated!</p>
]]></description><link>https://forum.qt.io/topic/164809/reliably-triggering-ubuntu-22.04-gnome-osk-from-qlineedit-without-wayland-without-qtvirtualkeyboard</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 00:48:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164809.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Jun 2026 04:09:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reliably triggering Ubuntu 22.04 GNOME OSK from QLineEdit (Without Wayland &#x2F; Without qtvirtualkeyboard) on Fri, 19 Jun 2026 16:02:17 GMT]]></title><description><![CDATA[<p dir="auto">My advise would be to write your own virtual keyboard app using Qt.   Since it seems you are writing a kiosk application then consider dropping gnome completely and run the app on a raw X11 session.</p>
<p dir="auto">Well, actually a kiosk application is one of the few places where wayland is actually appropriate since it is a single application (if you integrate the popup keyword)</p>
]]></description><link>https://forum.qt.io/post/838827</link><guid isPermaLink="true">https://forum.qt.io/post/838827</guid><dc:creator><![CDATA[Kent-Dorfman]]></dc:creator><pubDate>Fri, 19 Jun 2026 16:02:17 GMT</pubDate></item></channel></rss>