<?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[QDialog in Wayland works incomplete]]></title><description><![CDATA[<p dir="auto">Hi, community<br />
I deploy Qt application to embedded Linux, imx8m mini, based on Yocto Linux and Wayland desktop.</p>
<p dir="auto">Here is an example code to show the Qdialog.</p>
<pre><code>MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui-&gt;setupUi(this);
    d = new QDialog(this, Qt::FramlessWindowHint | Qt::WindowStaysOnTopHint);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    d-&gt;exec();
}
</code></pre>
<p dir="auto">The QDialog works perfectly on x86 host PC, but my embedded Linux works incomplete.</p>
<ol>
<li>The QDialog default position should locate at centered on top of the parent's top-level widget.<br />
But QDialog in Wayland shows on a random position. Even I try to use "move" to assign a specific position, it doesn't work.</li>
<li>The modal dialog can work. The parent is blocked. But there is no darkness effect on parent widget.</li>
</ol>
]]></description><link>https://forum.qt.io/topic/132797/qdialog-in-wayland-works-incomplete</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 05:43:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/132797.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Dec 2021 08:50:56 GMT</pubDate><ttl>60</ttl></channel></rss>