<?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[I have a problem with GraphicsView]]></title><description><![CDATA[<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/7e9d5aad-cb46-4051-b293-0071ddc4d7f2.png" alt="7a752758-697d-451a-ab5a-8287a192e6de-image.png" class=" img-fluid img-markdown" /><br />
When I drag the vertical line in A with the mouse, the movement of the vertical line in B is always delayed;</p>
<p dir="auto">After I did this, the delay disappeared:</p>
<pre><code>A.onMouseMove: 
{
     ... cur_scene_rect ...

     scene-&gt;setSceneRect(cur_scene_rect.left - 1,  ....);
     scene-&gt;setSceneRect(cur_scene_rect.left + 1,  ....);
     
     vline-&gt;setLine(....)
}

B.onMouseMoveFromA: 
{
     ... cur_scene_rect ...

     scene-&gt;setSceneRect(cur_scene_rect.left - 1,  ....);
     scene-&gt;setSceneRect(cur_scene_rect.left + 1,  ....);
     
     vline-&gt;setLine(....)
}
</code></pre>
<p dir="auto">Why is this? Why does calling setSceneRect to change scene_rect make the delay disappear, but if we don't call setSceneRect twice and keep scene_rect unchanged, there will be a delay?</p>
]]></description><link>https://forum.qt.io/topic/164397/i-have-a-problem-with-graphicsview</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 07:27:41 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164397.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Mar 2026 03:48:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I have a problem with GraphicsView on Sun, 08 Mar 2026 04:09:44 GMT]]></title><description><![CDATA[<p dir="auto">I asked Gemini and they removed the method of calling setSceneRect twice and replaced it with the method of graphicsview-&gt;viewport()-&gt;update(), which has the same effect.</p>
]]></description><link>https://forum.qt.io/post/836943</link><guid isPermaLink="true">https://forum.qt.io/post/836943</guid><dc:creator><![CDATA[cuijg]]></dc:creator><pubDate>Sun, 08 Mar 2026 04:09:44 GMT</pubDate></item></channel></rss>