<?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[how to handle millions of items ?]]></title><description><![CDATA[<p dir="auto">i am using QGraphicsView and QGraphicsScene to display millions of items, but it's very slow.<br />
is there any way to improve the GUI speed with this framework ?<br />
I can see many commercial tools can handle even billion of items, how to achieve this ?</p>
]]></description><link>https://forum.qt.io/topic/101540/how-to-handle-millions-of-items</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:23:43 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/101540.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Apr 2019 09:24:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to handle millions of items ? on Wed, 17 Apr 2019 22:11:22 GMT]]></title><description><![CDATA[<p dir="auto">As suggested you should research LOD algorithms. For example <a href="https://en.wikipedia.org/wiki/Progressive_meshes" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> may be of some use or maybe a <a href="https://en.wikipedia.org/wiki/Hierarchical_clustering" target="_blank" rel="noopener noreferrer nofollow ugc">clustering algorithm</a>. You may also benefit from a space partitioning scheme that's not the one implemented by the graphics scene, but something custom. In any case such problems are not trivial.</p>
]]></description><link>https://forum.qt.io/post/523697</link><guid isPermaLink="true">https://forum.qt.io/post/523697</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Wed, 17 Apr 2019 22:11:22 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Wed, 17 Apr 2019 04:33:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kenchan">@<bdi>kenchan</bdi></a> Thanks. they are single polygons, some of them may overlapping each other.<br />
yes, I agree I need to minimum the piexl coverage, that means filter out the ones need to render.<br />
the question is how to filter them out according to view port with so many polygons quickly.<br />
when zoom to an area, it should respond quickly, when fit the view, also quickly.<br />
I don't think it's a special case just for me. this should be a general case in many applications.<br />
So i want to see if there is existing framework which can handle such case.</p>
]]></description><link>https://forum.qt.io/post/523455</link><guid isPermaLink="true">https://forum.qt.io/post/523455</guid><dc:creator><![CDATA[student]]></dc:creator><pubDate>Wed, 17 Apr 2019 04:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Mon, 15 Apr 2019 14:21:47 GMT]]></title><description><![CDATA[<p dir="auto"><a href="http://lmgtfy.com/?q=drawing+millions+of+objects+in+qt" target="_blank" rel="noopener noreferrer nofollow ugc">drawing millions of objects in qt</a></p>
]]></description><link>https://forum.qt.io/post/523120</link><guid isPermaLink="true">https://forum.qt.io/post/523120</guid><dc:creator><![CDATA[fcarney]]></dc:creator><pubDate>Mon, 15 Apr 2019 14:21:47 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Mon, 15 Apr 2019 11:55:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/student">@<bdi>student</bdi></a><br />
are these polygon shapes single polygons or meshes of polygons?<br />
Are they overlapping i.e. can be hidden behind or hide others?<br />
Do they have some measure of coherence you can exploit?</p>
<p dir="auto">These are the kind of questions you should be asking yourself so you can determine the best strategies for LOD.<br />
The obvious strategies are minimum pixel coverage, removing items completely hidden items, removing items outside the viewport.</p>
<p dir="auto">If you really want to do it brute force use the GPU directly via OpenGL calls to do the drawing and don't rely on the Qt graphics items at all. Even then you might need to use some clever LOD strategies with that many polygons.</p>
]]></description><link>https://forum.qt.io/post/523100</link><guid isPermaLink="true">https://forum.qt.io/post/523100</guid><dc:creator><![CDATA[kenchan]]></dc:creator><pubDate>Mon, 15 Apr 2019 11:55:15 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Mon, 15 Apr 2019 05:56:12 GMT]]></title><description><![CDATA[<p dir="auto">any new idea?</p>
]]></description><link>https://forum.qt.io/post/523016</link><guid isPermaLink="true">https://forum.qt.io/post/523016</guid><dc:creator><![CDATA[student]]></dc:creator><pubDate>Mon, 15 Apr 2019 05:56:12 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Thu, 11 Apr 2019 02:46:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> no, just 2D polygons.</p>
]]></description><link>https://forum.qt.io/post/522431</link><guid isPermaLink="true">https://forum.qt.io/post/522431</guid><dc:creator><![CDATA[student]]></dc:creator><pubDate>Thu, 11 Apr 2019 02:46:02 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Wed, 10 Apr 2019 21:53:16 GMT]]></title><description><![CDATA[<p dir="auto">Is it a 3D scene ?</p>
]]></description><link>https://forum.qt.io/post/522427</link><guid isPermaLink="true">https://forum.qt.io/post/522427</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 10 Apr 2019 21:53:16 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Wed, 10 Apr 2019 02:14:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> I have many polygon shapes, and need to view / edit them, for view/edit, i think just when zoom in, without zoom in, a rough picture is enough.<br />
as you said: """ There's no use trying to render each feather of a Kiwi bird if you are looking at it from the top of a building.</p>
<p dir="auto">The same goes the other way around, there's no use rendering the full building since you're on top of it trying to look at a Kiwi bird."""</p>
<p dir="auto">that's it.</p>
]]></description><link>https://forum.qt.io/post/522208</link><guid isPermaLink="true">https://forum.qt.io/post/522208</guid><dc:creator><![CDATA[student]]></dc:creator><pubDate>Wed, 10 Apr 2019 02:14:14 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Tue, 09 Apr 2019 21:44:22 GMT]]></title><description><![CDATA[<p dir="auto">Before going further, what kind of rendering are you looking at ? Just to ensure you are choosing the right tool for your task.</p>
]]></description><link>https://forum.qt.io/post/522194</link><guid isPermaLink="true">https://forum.qt.io/post/522194</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 09 Apr 2019 21:44:22 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Tue, 09 Apr 2019 07:23:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> thanks for your reply, i am a newer to Qt.<br />
yes, I don't want to show them at full pic view, so I just show them when zoom in to a specific value, in the paint function for each item, I use :</p>
<p dir="auto">option-&gt;levelOfDetailFromTransform(painter-&gt;worldTransform()) &lt; SpecificValue: return</p>
<p dir="auto">but it doesn't help much.</p>
<p dir="auto">Could you help to describe more about how to filter them ? or is there any example ?<br />
thanks very much !</p>
]]></description><link>https://forum.qt.io/post/522003</link><guid isPermaLink="true">https://forum.qt.io/post/522003</guid><dc:creator><![CDATA[student]]></dc:creator><pubDate>Tue, 09 Apr 2019 07:23:57 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Tue, 09 Apr 2019 08:01:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> yes, agree with you. i believe they must have some mechanisms to process this.<br />
you know, we just want to see detail when zoom in to a specific level, otherwise, just show a rough picture.  that's why I asked this question here to see if anyone have experience on such case. in the other world, how to process large amount of polygon shapes by using Qt.<br />
i am a new to Qt :-)</p>
]]></description><link>https://forum.qt.io/post/521997</link><guid isPermaLink="true">https://forum.qt.io/post/521997</guid><dc:creator><![CDATA[student]]></dc:creator><pubDate>Tue, 09 Apr 2019 08:01:31 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Tue, 09 Apr 2019 07:07:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/student">@<bdi>student</bdi></a> said in <a href="/post/521993">how to handle millions of items ?</a>:</p>
<blockquote>
<p dir="auto">they can show billions of polygon shapes</p>
</blockquote>
<p dir="auto">I doubt that. It is simply not possible to see so many objects on a display (a display does not even has so many pixels...). I'm quite sure they reduce the amount of objects to what actually makes sense.</p>
]]></description><link>https://forum.qt.io/post/521994</link><guid isPermaLink="true">https://forum.qt.io/post/521994</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 09 Apr 2019 07:07:19 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Tue, 09 Apr 2019 06:58:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aha_1980">@<bdi>aha_1980</bdi></a> yes, actually i have more than 4 millions of objects (polygon shapes)  that could be 100000000.  i want to show a blurred picture unless zoom in.<br />
i see many EDA tools, like synopsys, cadence, they can show billions of polygon shapes.</p>
]]></description><link>https://forum.qt.io/post/521993</link><guid isPermaLink="true">https://forum.qt.io/post/521993</guid><dc:creator><![CDATA[student]]></dc:creator><pubDate>Tue, 09 Apr 2019 06:58:25 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Tue, 09 Apr 2019 06:50:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/student">@<bdi>student</bdi></a></p>
<p dir="auto">Have you thought that each element needs memory too? Holding 4 million objects in memory may be challenging.</p>
<p dir="auto">If you really need so many items, you will need to invest some more energy.</p>
]]></description><link>https://forum.qt.io/post/521992</link><guid isPermaLink="true">https://forum.qt.io/post/521992</guid><dc:creator><![CDATA[aha_1980]]></dc:creator><pubDate>Tue, 09 Apr 2019 06:50:51 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Tue, 09 Apr 2019 06:46:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aha_1980">@<bdi>aha_1980</bdi></a> thanks, I tried this example before, when I increase the number to 4 millions, it's also very slow . it doesn't help too much.</p>
]]></description><link>https://forum.qt.io/post/521990</link><guid isPermaLink="true">https://forum.qt.io/post/521990</guid><dc:creator><![CDATA[student]]></dc:creator><pubDate>Tue, 09 Apr 2019 06:46:22 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Tue, 09 Apr 2019 06:38:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/student">@<bdi>student</bdi></a> said in <a href="/post/521964">how to handle millions of items ?</a>:</p>
<blockquote>
<p dir="auto">or is there any example ?</p>
</blockquote>
<p dir="auto"><a href="https://doc.qt.io/qt-5/qtwidgets-graphicsview-chip-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qtwidgets-graphicsview-chip-example.html</a></p>
]]></description><link>https://forum.qt.io/post/521987</link><guid isPermaLink="true">https://forum.qt.io/post/521987</guid><dc:creator><![CDATA[aha_1980]]></dc:creator><pubDate>Tue, 09 Apr 2019 06:38:28 GMT</pubDate></item><item><title><![CDATA[Reply to how to handle millions of items ? on Mon, 08 Apr 2019 10:24:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">The usual technique is: render only what make sense to show.</p>
<p dir="auto">There's no use trying to render each feather of a Kiwi bird if you are looking at it from the top of a building.</p>
<p dir="auto">The same goes the other way around, there's no use rendering the full building since you're on top of it trying to look at a Kiwi bird.</p>
]]></description><link>https://forum.qt.io/post/521849</link><guid isPermaLink="true">https://forum.qt.io/post/521849</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 08 Apr 2019 10:24:28 GMT</pubDate></item></channel></rss>