<?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[Wayland : Creating a fake screen in order for Qt not to crash]]></title><description><![CDATA[<p dir="auto">I'am having a trouble turning on off screen on wyaland .<br />
Using these commands on my <strong>RPI5</strong>, ( using labwc)</p>
<ul>
<li>wlr-randr --output HDMI-A-1 --on</li>
<li>wlr-randr --output HDMI-A-1 --off<br />
Makes my app crash the last log i can see as important is ;</li>
</ul>
<pre><code>QCoreApplication::postEvent: Unexpected null receiver
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
MainWindow::processExited Le processus NeoScheduler a termine par lui-meme
</code></pre>
<p dir="auto">Is there any solution ? is it a known issue ?<br />
Thank you</p>
]]></description><link>https://forum.qt.io/topic/164482/wayland-creating-a-fake-screen-in-order-for-qt-not-to-crash</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 15:23:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164482.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Mar 2026 13:08:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wayland : Creating a fake screen in order for Qt not to crash on Wed, 25 Mar 2026 13:12:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/the-qt-mayssa">@<bdi>The-Qt-Mayssa</bdi></a><br />
I think we're talking in circles.<br />
If you want someone in the forum to analyze the problem, you need to provide a <a href="https://en.wikipedia.org/wiki/Minimal_reproducible_example" target="_blank" rel="noopener noreferrer nofollow ugc">minimal reproducer</a>. In the unlikely case that it's a bug in Qt, it won't be fixed in an EOL version.<br />
You will have to upgrade at some point anyway.</p>
]]></description><link>https://forum.qt.io/post/837322</link><guid isPermaLink="true">https://forum.qt.io/post/837322</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Wed, 25 Mar 2026 13:12:03 GMT</pubDate></item><item><title><![CDATA[Reply to Wayland : Creating a fake screen in order for Qt not to crash on Wed, 25 Mar 2026 13:00:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/axel-spoerl">@<bdi>Axel-Spoerl</bdi></a> Passing to qt6 , is more complicated then that. The idea is to keep app working , fixing some bugs ( the eolution to qt6 is not an option today :// )<br />
i start the app manually via a script <a href="http://launch.sh" target="_blank" rel="noopener noreferrer nofollow ugc">launch.sh</a> , that sets the exports values then ./myapp.</p>
<p dir="auto">Knowing the app crashes only when doing wlr-randr command to turn on off screen.<br />
I already added logs to debug ( since i'm cross compiling to deploy on a light version of tirixie :') ) , i'm getting this as a last log</p>
<pre><code>
2026.03.25 13:16:08 Creating a fake screen in order for Qt not to crash
2026.03.25 13:16:08[D] step Primary screen changed: QScreen(0x73a0270, name="")
2026.03.25 13:16:08[D] step Screen removed: QScreen(0x6ec0510, name="HDMI-A-1")

</code></pre>
<p dir="auto">the code:</p>
<pre><code>    QObject::connect(&amp;app, &amp;QGuiApplication::screenRemoved,
                     [](QScreen *screen){
                         qDebug() &lt;&lt; "step Screen removed:" &lt;&lt; screen;
                     });

    QObject::connect(&amp;app, &amp;QGuiApplication::primaryScreenChanged,
                     [](QScreen *screen){
                         qDebug() &lt;&lt; "step Primary screen changed:" &lt;&lt; screen;
                     });
</code></pre>
]]></description><link>https://forum.qt.io/post/837321</link><guid isPermaLink="true">https://forum.qt.io/post/837321</guid><dc:creator><![CDATA[The Qt Mayssa]]></dc:creator><pubDate>Wed, 25 Mar 2026 13:00:26 GMT</pubDate></item><item><title><![CDATA[Reply to Wayland : Creating a fake screen in order for Qt not to crash on Wed, 25 Mar 2026 12:20:02 GMT]]></title><description><![CDATA[<p dir="auto">Well, that's not a reproducer.<br />
It's how you start the app that crashes.<br />
However, Qt 5.15 has been EOL for a long time.<br />
The wayland implementation has been hardened recently.<br />
Please use Qt 6.8 or later.</p>
]]></description><link>https://forum.qt.io/post/837319</link><guid isPermaLink="true">https://forum.qt.io/post/837319</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Wed, 25 Mar 2026 12:20:02 GMT</pubDate></item><item><title><![CDATA[Reply to Wayland : Creating a fake screen in order for Qt not to crash on Wed, 25 Mar 2026 08:52:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/axel-spoerl">@<bdi>Axel-Spoerl</bdi></a> ,</p>
<p dir="auto">I’m running a Qt Widgets application on Wayland (Raspberry Pi 5, wlroots-based compositor).<br />
Qt version : 5.15.17</p>
<p dir="auto">The app is started with:</p>
<pre><code>export QT_QPA_PLATFORM=wayland
export WAYLAND_DISPLAY=wayland-0
./myApp
</code></pre>
<p dir="auto">When I disable the display using:</p>
<pre><code>wlr-randr --output HDMI-A-1 --off
</code></pre>
<p dir="auto">the application crashes or becomes unstable.</p>
<p dir="auto">This also happens when the command is executed via SSH.</p>
<p dir="auto">When I re-enable the output:</p>
<pre><code>wlr-randr --output HDMI-A-1 --on
</code></pre>
<p dir="auto">the issue still occurs.</p>
<p dir="auto">It seems that removing the output entirely from Wayland causes Qt to crash.</p>
<p dir="auto"><strong>Questions:</strong></p>
<ul>
<li>Is this a known limitation of Qt Widgets on Wayland?</li>
<li>What is the recommended way to handle display power management in this setup?</li>
<li>Should outputs be avoided from being fully disabled when using Qt?</li>
</ul>
<p dir="auto">Thanks for your help.</p>
]]></description><link>https://forum.qt.io/post/837314</link><guid isPermaLink="true">https://forum.qt.io/post/837314</guid><dc:creator><![CDATA[The Qt Mayssa]]></dc:creator><pubDate>Wed, 25 Mar 2026 08:52:54 GMT</pubDate></item><item><title><![CDATA[Reply to Wayland : Creating a fake screen in order for Qt not to crash on Tue, 24 Mar 2026 15:16:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/the-qt-mayssa">@<bdi>The-Qt-Mayssa</bdi></a> ,<br />
can you please post a minimal compilable reproducer?</p>
]]></description><link>https://forum.qt.io/post/837301</link><guid isPermaLink="true">https://forum.qt.io/post/837301</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Tue, 24 Mar 2026 15:16:16 GMT</pubDate></item></channel></rss>