<?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[QQuickView with frameless window hint - fails if QQuickView::setSource is called]]></title><description><![CDATA[<p dir="auto">I have a Qt Qml application based in a QQuickView window.  It works great on OSX/Linux/Windows.</p>
<p dir="auto">On Windows 10 (but I've not tried on other operating systems yet), if I add a frameless window hint to the QQuickView window's flag, I get exactly the window I desired (as expected.)</p>
<p dir="auto">If I do the same thing and then call setSource( "myqml.qml" ) on that QQuickView, the window will fail to display although the taskbar will show that the application window (the QQuickView.)  Note that the setSource call happens after the ::show() call (I tried hiding it, then calling setSource, then unhiding in case there was some window reconstruction issue - but no luck.)</p>
<p dir="auto">When this happens, the console output shows: "QSGThreadedRenderLoop: expose event received for window QQuickView(0xc6eb8fef68) with invalid geometry: QRect(-1357,226 0x0) on QScreen(0x277c048c960, name=\.\DISPLAY3)"</p>
<p dir="auto">This is the same display that shows successfully if I don't call setSource.</p>
<p dir="auto">If the QML file is completely empty or only contains import statements - the window shows properly.<br />
If I add just the following:</p>
<p dir="auto">Rectangle {<br />
color: "red"<br />
}</p>
<p dir="auto">The window fails to show.</p>
<p dir="auto">Interestingly if I give the rectangle a specific size like this:</p>
<p dir="auto">Rectangle {<br />
width: 100<br />
height: 100<br />
color: "red"<br />
border.color: "black"<br />
border.width: 5<br />
radius: 10<br />
}</p>
<p dir="auto">Then I do not get the window without a title bar, I get a window exactly the size of the rect and because I gave the corners a radius, I see a white background where the corners would normally be (indicating to me that the window size has shrunk to the size of the rect.)</p>
<p dir="auto">Anybody know how to fix this?</p>
<p dir="auto">I would expect the same behavior as when there is a titlebar...  Is that wrong?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/topic/74117/qquickview-with-frameless-window-hint-fails-if-qquickview-setsource-is-called</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 04:45:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/74117.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Dec 2016 16:13:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QQuickView with frameless window hint - fails if QQuickView::setSource is called on Thu, 08 Dec 2016 21:19:23 GMT]]></title><description><![CDATA[<p dir="auto">I think(but i might be wrong) that it's true with regards to almost all QML visual items - by default, their size is 0x0. With an exception of <strong>Image</strong> which gets its default size from the picture it shows, and perhaps some others?. Anyway, that's what makes defining proper height/width and/or anchors of all visible <strong>Items</strong> mandatory.</p>
]]></description><link>https://forum.qt.io/post/363627</link><guid isPermaLink="true">https://forum.qt.io/post/363627</guid><dc:creator><![CDATA[Jagh]]></dc:creator><pubDate>Thu, 08 Dec 2016 21:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to QQuickView with frameless window hint - fails if QQuickView::setSource is called on Thu, 08 Dec 2016 18:09:10 GMT]]></title><description><![CDATA[<p dir="auto">Ahhh, I think that because the base rect in my qml code doesn't define a size (which gives it parent fill properties) and the frameless window doesn't have a parent (which was presumably previously the window frame itself.)</p>
<p dir="auto">Strange because I tried defining a minimum size for the QQuickView and then loading the qml and that didn't work.</p>
<p dir="auto">Anyhow, not sure if this is a bug or expected behavior (by the implementors) - I suspect the latter.</p>
<p dir="auto">I can easily work around by giving the qml base rect a size.</p>
]]></description><link>https://forum.qt.io/post/363605</link><guid isPermaLink="true">https://forum.qt.io/post/363605</guid><dc:creator><![CDATA[VRHans]]></dc:creator><pubDate>Thu, 08 Dec 2016 18:09:10 GMT</pubDate></item></channel></rss>