<?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 QPaintedItem::update(QRect) in painter works]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I want to draw a line whenever new data comes .</p>
<p dir="auto">I am trying to paint only particular area where new line should be drawn so i am using update(QRect).</p>
<p dir="auto">but i can see line drawn or painting is also happening slightly before rect x start point  .</p>
<p dir="auto">since update(QRectF) support is not there it is rounding off to near by int value ,because of that we see this problem .</p>
<p dir="auto">Can anybody help how to over come this problem ?<br />
Any sample code with update(rect) ?<br />
can i draw a line inside update(rect) area ?</p>
<p dir="auto">thx in advance</p>
]]></description><link>https://forum.qt.io/topic/114604/how-to-qpainteditem-update-qrect-in-painter-works</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 09:34:13 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114604.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 May 2020 10:25:54 GMT</pubDate><ttl>60</ttl></channel></rss>