<div dir="ltr"><div>Hi,</div><div><br></div><div>I am developing a Qt6-based application, that needs to display a QWindow as a desktop panel on Wayland compositors - so at the edge of the screen, and never overlapped by maximized windows.<br></div><div><br></div><div>To do this, I need to use the l<a href="https://invent.kde.org/plasma/layer-shell-qt" target="_blank">ayershell-qt</a> library.</div><div><br></div><div>If I compile the library as-is, it uses my system's Qt5 installation. The included test program works fine.</div><div><br></div><div>However I need to compile the library for use with Qt6. If I do this, the test program doesn't display it's window anymore but prints the following output instead:</div><div><b><br></b></div><div><b><span style="font-family:monospace">qt.qpa.wayland: No shell integration named "layer-shell" found<br>qt.qpa.wayland: Loading shell integration failed.<br>qt.qpa.wayland: Attempted to load the following shells QList("layer-shell")</span></b></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:arial,sans-serif">The same goes for my program. The</span><code><span style="font-family:arial,sans-serif"> function</span><br></code></div><div><code><br></code></div><div><b><code>LayerShellQt::Shell::useLayerShell()</code></b><span style="font-family:monospace"> </span><br><div><br></div><div>needs to be ran before creating any windows, which executes</div><div><br></div><div><b><span style="font-family:monospace">void Shell::useLayerShell()<br>{<br>    const bool ret = qputenv("QT_WAYLAND_SHELL_INTEGRATION", "layer-shell");<br>    if (!ret) {<br>        qCDebug(LAYERSHELLQT) << "Unable to set QT_WAYLAND_SHELL_INTEGRATION=layer-shell";<br>    }<br>}</span></b></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><span style="font-family:arial,sans-serif">Can anyone help?<br></span></span></div><div><span style="font-family:monospace"><span style="font-family:arial,sans-serif"><br></span></span></div><div><span style="font-family:monospace"><span style="font-family:arial,sans-serif">Thanks in advance!<br></span></span></div><div><span style="font-family:monospace"><br></span></div><div><br></div></div></div>