<?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[In which cases does QGraphicsScene::render not work?]]></title><description><![CDATA[<p dir="auto">And again, good day to everyone!<br />
Can anyone tell under what conditions the procedure scene-&gt;render(...) won't do anything?<br />
I observe a number of situations when, with a completely correct "input", the rendering of the specified area simply does not occur, although there are objects to draw (thousands of polygons) (and the execution time of the render() operation takes 0.0 ms).<br />
If no one has any ideas offhand, then I will give a clipping from the code demonstrating the problem.<br />
Thank you in advance for any help!</p>
]]></description><link>https://forum.qt.io/topic/139705/in-which-cases-does-qgraphicsscene-render-not-work</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 03:34:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139705.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Sep 2022 17:00:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to In which cases does QGraphicsScene::render not work? on Fri, 30 Sep 2022 22:47:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> , yes, indeed, the problem was with the boundingRect() function, which I forgot to update when installing the "crutch". Now everything works correctly :) Thank you for the tip!</p>
]]></description><link>https://forum.qt.io/post/730918</link><guid isPermaLink="true">https://forum.qt.io/post/730918</guid><dc:creator><![CDATA[RoApPr]]></dc:creator><pubDate>Fri, 30 Sep 2022 22:47:56 GMT</pubDate></item><item><title><![CDATA[Reply to In which cases does QGraphicsScene::render not work? on Fri, 30 Sep 2022 22:46:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> , look, while I was making a cropped copy of the program, I solved my original problem xD<br />
However, the solution is a "crutch" that I would like not to use.<br />
At the moment, the problem is this - when zooming the map, there is a moment when the rendering time of a new map section begins to take ten times longer than before. I can't understand why this is happening and hope for your help :)<br />
<a href="https://drive.google.com/file/d/1xM-XXcR8z8O1b5oUY-bkX8mewuZIoHbi/view?usp=sharing" target="_blank" rel="noopener noreferrer nofollow ugc">Google disc program archive</a><br />
P.S. I use Qt 5.12.</p>
]]></description><link>https://forum.qt.io/post/730917</link><guid isPermaLink="true">https://forum.qt.io/post/730917</guid><dc:creator><![CDATA[RoApPr]]></dc:creator><pubDate>Fri, 30 Sep 2022 22:46:09 GMT</pubDate></item><item><title><![CDATA[Reply to In which cases does QGraphicsScene::render not work? on Fri, 30 Sep 2022 18:28:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roappr">@<bdi>RoApPr</bdi></a><br />
Fair enough.  Are you able to <em>test</em> whether if you do not pass in any rectangles (so whole scene) these objects <em>do</em> show?  Then we know it seems to be a source rectangle issue.</p>
]]></description><link>https://forum.qt.io/post/730891</link><guid isPermaLink="true">https://forum.qt.io/post/730891</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 30 Sep 2022 18:28:18 GMT</pubDate></item><item><title><![CDATA[Reply to In which cases does QGraphicsScene::render not work? on Fri, 30 Sep 2022 18:27:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Can you provide a minimal compilable example that shows that issue ?</p>
]]></description><link>https://forum.qt.io/post/730890</link><guid isPermaLink="true">https://forum.qt.io/post/730890</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 30 Sep 2022 18:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to In which cases does QGraphicsScene::render not work? on Fri, 30 Sep 2022 18:25:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> said in <a href="/post/730872">In which cases does QGraphicsScene::render not work?</a>:</p>
<blockquote>
<p dir="auto">If you are, you are quite certain they are correct?</p>
</blockquote>
<p dir="auto">Yes, I use them, and I am absolutely sure of their correctness. BUT, even if this is not the case, I manually checked some of their correct values, at which rendering also does not occur.</p>
]]></description><link>https://forum.qt.io/post/730888</link><guid isPermaLink="true">https://forum.qt.io/post/730888</guid><dc:creator><![CDATA[RoApPr]]></dc:creator><pubDate>Fri, 30 Sep 2022 18:25:57 GMT</pubDate></item><item><title><![CDATA[Reply to In which cases does QGraphicsScene::render not work? on Fri, 30 Sep 2022 17:40:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roappr">@<bdi>RoApPr</bdi></a> said in <a href="/post/730870">In which cases does QGraphicsScene::render not work?</a>:</p>
<blockquote>
<p dir="auto">with a completely correct "input"</p>
</blockquote>
<p dir="auto">Are you passing target or source rectangles?  If you are, you are <em>quite certain</em> they are correct?  That would be my first thought.</p>
]]></description><link>https://forum.qt.io/post/730872</link><guid isPermaLink="true">https://forum.qt.io/post/730872</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 30 Sep 2022 17:40:22 GMT</pubDate></item></channel></rss>