<?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[WindowStaysOnTopHint 无效]]></title><description><![CDATA[<p dir="auto">大家好：</p>
<p dir="auto">m_dlg = new QDialog(0, Qt::WindowStaysOnTopHint);<br />
m_dlg-&gt;show();</p>
<p dir="auto">m_dlg 依然可以被其它窗覆盖！<br />
谢问怎么回事？谢谢！</p>
]]></description><link>https://forum.qt.io/topic/75600/windowstaysontophint-无效</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 05:58:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/75600.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Jan 2017 23:23:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WindowStaysOnTopHint 无效 on Thu, 02 Feb 2017 08:05:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neeme">@<bdi>neeme</bdi></a><br />
Hi, friend, Welcome.</p>
<pre><code class="language-cpp">m_dlg = new QDialog(0, Qt::WindowStaysOnTopHint); ///你的代码中,没有给新生成的窗体,指定一个父类. 你使用了0
m_dlg-&gt;show();
</code></pre>
<pre><code class="language-cpp">m_dlg = new QDialog(this, Qt::WindowStaysOnTopHint); /// 使用this, 那么这个新的窗体,就会出现在父窗体的上面了.
m_dlg-&gt;show();
</code></pre>
]]></description><link>https://forum.qt.io/post/372983</link><guid isPermaLink="true">https://forum.qt.io/post/372983</guid><dc:creator><![CDATA[joeQ]]></dc:creator><pubDate>Thu, 02 Feb 2017 08:05:21 GMT</pubDate></item><item><title><![CDATA[Reply to WindowStaysOnTopHint 无效 on Thu, 02 Feb 2017 02:50:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neeme">@<bdi>neeme</bdi></a><br />
你是在甚麼平台上使用的呢?</p>
<p dir="auto">官方的文檔上有講說在一些 X11 的視窗管理員上需要多給<code>Qt::X11BypassWindowManagerHint</code>這個flag才能保證正確運作</p>
]]></description><link>https://forum.qt.io/post/372965</link><guid isPermaLink="true">https://forum.qt.io/post/372965</guid><dc:creator><![CDATA[Flotisable]]></dc:creator><pubDate>Thu, 02 Feb 2017 02:50:39 GMT</pubDate></item></channel></rss>