<?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[drawing dense items in graphics scene]]></title><description><![CDATA[<p dir="auto">i have a lot of coordinates like these: (-0.45, -3.1), (-0.14, -1.8) etc. and i need to draw polygons using these.<br />
as you can see the values are so close to each other that when i draw the items now, they overlap, and look very small in the center of the view.<br />
how can i draw so that all drawn items occupy all visible area of the view? should i do something like multiplying the values of coordinates? or what?</p>
<p dir="auto">thanks.</p>
]]></description><link>https://forum.qt.io/topic/89421/drawing-dense-items-in-graphics-scene</link><generator>RSS for Node</generator><lastBuildDate>Fri, 23 Oct 2026 16:25:12 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/89421.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Mar 2018 18:55:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to drawing dense items in graphics scene on Sun, 01 Apr 2018 06:53:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/user4592357">@<bdi>user4592357</bdi></a><br />
Why don't you put your QGraphicsScene to QGraphicsView by<br />
void QGraphicsView::setScene(QGraphicsScene *scene)<br />
and use<br />
void QGraphicsView::scale(qreal sx, qreal sy) ?<br />
You may also use mousewheel to zoom in/out.<br />
See <a href="http://www.qtcentre.org/threads/52603-Zoom-effect-by-mouse-Wheel-in-QGraphicsview" target="_blank" rel="noopener noreferrer nofollow ugc">this</a></p>
]]></description><link>https://forum.qt.io/post/450631</link><guid isPermaLink="true">https://forum.qt.io/post/450631</guid><dc:creator><![CDATA[samdol]]></dc:creator><pubDate>Sun, 01 Apr 2018 06:53:25 GMT</pubDate></item><item><title><![CDATA[Reply to drawing dense items in graphics scene on Sat, 31 Mar 2018 20:56:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Frome <a href="http://doc.qt.io/qt-5/qgraphicsview.html#details" target="_blank" rel="noopener noreferrer nofollow ugc">QGraphicsView's documentation</a>:</p>
<pre><code>QGraphicsView can be used to visualize a whole scene, or only parts of it. The visualized area is by default detected
automatically when the view is displayed for the first time (by calling QGraphicsScene::itemsBoundingRect()). To
set the visualized area rectangle yourself, you can call setSceneRect(). This will adjust the scroll bars' ranges 
appropriately. Note that although the scene supports a virtually unlimited size, the range of the scroll bars will 
never exceed the range of an integer (INT_MIN, INT_MAX).
</code></pre>
]]></description><link>https://forum.qt.io/post/450603</link><guid isPermaLink="true">https://forum.qt.io/post/450603</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 31 Mar 2018 20:56:22 GMT</pubDate></item></channel></rss>