<?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[[SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2]]></title><description><![CDATA[<p dir="auto">This could be related to this issue here: "<a href="https://bugreports.qt-project.org/browse/QTBUG-33011" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt-project.org/browse/QTBUG-33011</a><br />
":<a href="https://bugreports.qt-project.org/browse/QTBUG-33011" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt-project.org/browse/QTBUG-33011</a></p>
<p dir="auto">I create a dialog box, which displays properly with the window title (and minimize, maximize and close buttons).<br />
After I hide it, change its location, then change its colors, set the window flags, and after I show it again with window title bar is gone.</p>
<p dir="auto">This wasn't a problem in 5.1.2, but appeared in 5.2.0.  In 5.1.2 I set the window flags like this:</p>
<p dir="auto">@setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint);@</p>
<p dir="auto">and I had no problems until 5.2.0.  I tried 5.2.1 (current stable branch), and the problem is still there.  But if I set the window flags like this:</p>
<p dir="auto">@setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint |  Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);@</p>
<p dir="auto">then I get the title bar back.</p>
<p dir="auto">So I have a workaround, but it seems like a regression to me.</p>
<p dir="auto">I can come up with a (hopefully) small test case if needed. I'm running on Mac OS 10.8.5.</p>
]]></description><link>https://forum.qt.io/topic/36393/solved-window-title-disappearing-on-mac-after-hide-in-5-2-0-didn-t-happen-in-5-1-2</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 22:20:20 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/36393.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Jan 2014 12:07:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2 on Sat, 11 Jan 2014 23:51:50 GMT]]></title><description><![CDATA[<p dir="auto">Done!</p>
<p dir="auto">And I tagged it "solved" as well :)</p>
]]></description><link>https://forum.qt.io/post/210324</link><guid isPermaLink="true">https://forum.qt.io/post/210324</guid><dc:creator><![CDATA[EricRFMA]]></dc:creator><pubDate>Sat, 11 Jan 2014 23:51:50 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2 on Sat, 11 Jan 2014 23:14:43 GMT]]></title><description><![CDATA[<p dir="auto">You're welcome !</p>
<p dir="auto">If this answers your question, please update the thread title prepending [solved] so other forum users may know it's all good :)</p>
]]></description><link>https://forum.qt.io/post/210325</link><guid isPermaLink="true">https://forum.qt.io/post/210325</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 11 Jan 2014 23:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2 on Sat, 11 Jan 2014 23:05:42 GMT]]></title><description><![CDATA[<p dir="auto">Great... thanks!</p>
]]></description><link>https://forum.qt.io/post/210322</link><guid isPermaLink="true">https://forum.qt.io/post/210322</guid><dc:creator><![CDATA[EricRFMA]]></dc:creator><pubDate>Sat, 11 Jan 2014 23:05:42 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2 on Sat, 11 Jan 2014 22:13:51 GMT]]></title><description><![CDATA[<p dir="auto">As far as I can tell, yes.</p>
<p dir="auto">The log says:</p>
<p dir="auto">bq.<br />
This ensures that the possible window flag combinations are respected<br />
where possible in Cocoa.</p>
]]></description><link>https://forum.qt.io/post/210312</link><guid isPermaLink="true">https://forum.qt.io/post/210312</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 11 Jan 2014 22:13:51 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2 on Sat, 11 Jan 2014 21:54:17 GMT]]></title><description><![CDATA[<p dir="auto">Ah, OK, so it was an intentional change in behavior from 5.1 to 5.2?  Was it a bug fix?</p>
<p dir="auto">Thanks for the clarification!</p>
<p dir="auto">-Eric</p>
]]></description><link>https://forum.qt.io/post/210307</link><guid isPermaLink="true">https://forum.qt.io/post/210307</guid><dc:creator><![CDATA[EricRFMA]]></dc:creator><pubDate>Sat, 11 Jan 2014 21:54:17 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2 on Fri, 10 Jan 2014 22:35:50 GMT]]></title><description><![CDATA[<p dir="auto">Don't worry, it does show the behavior.</p>
<p dir="auto">Looking at the sources, I can't say it's a regression, in fact it looks like it's 5.1 that didn't have the correct behavior.</p>
<p dir="auto">Qt::CustomizeWindowHint means "turn off the default window title hints" From there you can customize it to your liking (title, button etc.) Something that it seem you could not do in 5.1</p>
]]></description><link>https://forum.qt.io/post/210223</link><guid isPermaLink="true">https://forum.qt.io/post/210223</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 10 Jan 2014 22:35:50 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2 on Fri, 10 Jan 2014 04:44:48 GMT]]></title><description><![CDATA[<p dir="auto">(I tried posting this reply once, and it disappeared into the ozone... hope this attempt fares better)</p>
<p dir="auto">I got a simple test case :)  I built it with 5.2.1 (stable) and the problem occurs.  If I build it with 5.1.0, no problem (the window title stays put).</p>
<p dir="auto">@#include &lt;QApplication&gt;<br />
#include &lt;QDialog&gt;<br />
int main(int argc, char *argv[])<br />
{<br />
QApplication a(argc, argv);</p>
<p dir="auto">QDialog *dialog = new QDialog();</p>
<p dir="auto">dialog-&gt;show();  // appears with window title</p>
<p dir="auto">dialog-&gt;hide();</p>
<p dir="auto">dialog-&gt;setWindowFlags(<br />
Qt::Dialog |<br />
Qt::CustomizeWindowHint |<br />
Qt::WindowStaysOnTopHint);</p>
<p dir="auto">dialog-&gt;show();  // in 5.1, window title is there but not in 5.2.1 (or 5.2.0)</p>
<p dir="auto">return a.exec();<br />
}<br />
@</p>
<p dir="auto">That <em>should</em> reproduce the problem... please let me know if it doesn't or if there's anything else I can do.</p>
<p dir="auto">Thanks!</p>
<p dir="auto">-Eric</p>
]]></description><link>https://forum.qt.io/post/210124</link><guid isPermaLink="true">https://forum.qt.io/post/210124</guid><dc:creator><![CDATA[EricRFMA]]></dc:creator><pubDate>Fri, 10 Jan 2014 04:44:48 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Window Title Disappearing on Mac after Hide in 5.2.0, didn&#x27;t happen in 5.1.2 on Thu, 09 Jan 2014 12:47:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Yes, a test case would be very good</p>
]]></description><link>https://forum.qt.io/post/210074</link><guid isPermaLink="true">https://forum.qt.io/post/210074</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 09 Jan 2014 12:47:32 GMT</pubDate></item></channel></rss>