<br><br><div class="gmail_quote">On Fri, Dec 11, 2009 at 1:17 AM, <a href="mailto:LukasT.dev@gmail.com">LukasT.dev@gmail.com</a> <span dir="ltr">&lt;<a href="mailto:lukast.dev@gmail.com">lukast.dev@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thursday 10 December 2009 11:05:57 Dmitry Kazakov wrote:<br>
&gt; 1) Is there any link to read about INDEPENDENT_CANVAS?<br>
<br>
</div>I give you the idea of what I have done. I added private member QImage m_img<br>
to KisQPainterCanvas and when the paint event is called with changed rect, the<br>
rect is painted to the QImage and then the rect is updated with other QPainter<br>
which is widget&#39;s one.<br>
<div class="im"><br>
&gt; 2) Well, is there any way to move painting decorations and overlay outside<br>
&gt; of paint event? We could prepare your QImage outside paint event, and just<br>
&gt; copy it to the widget inside paintEvent? Is this possible?<br>
<br>
</div>So we would not store one global QImage but allocate small ones per paint-<br>
overlay action?</blockquote></div>Hmm.. no. One global QImage. It is updated on the change of decorations. Inside paintEvent we just call gc.drawImage(qimage) and no updates. Is it possible? And will help to improve perfomance?<br>
<br clear="all"><br>-- <br>Dmitry Kazakov<br>