hello sir<br>For avoiding flickering i i reimplemented my class and inherited from QgsMapCanvasItem.<br>i defined drawShape(QPainter &amp;) in my code but it is never getting called even after multiple call to updateCanvas().
<br>I has studied Measure area maptool code. Where similar code is there and same control flow do work. Can anybody advice on this issue while such thing is happening?if there is need, i can post my code also.<br>regards<br>
quick nitin<br><br><br><div><span class="gmail_quote">On 6/18/06, <b class="gmail_sendername">nitin quick</b> &lt;<a href="mailto:quick.nitin@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

quick.nitin@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>thanks for replying<br>sorry i didn't mentioned qgis version. Currently i am using 
qgis0.7.9 from svn , downloaded around 1 month before and which i think is nearer to 0.8.<br>One place i got down whichi think is potential reason of flickering is i had connected render function of myplugin with signal emmitted by mQgisIface-&gt;getMapCanvas()-&gt;renderComplete(QPainter *). Why i connected these because i needed QPainter refrence for drawing on canvas. Is my reasoning&nbsp; correct?
<br>If so , ihave tried to save the state of passed pointer in one of global variable in my plugin but global painter object is not active? is it possible to do so. I think it should happen may be smwhere i am making some mistake.
<br>Any tips on avoiding such kind of flickering. since i am using qgis0.8 there is no bitblt() available.<br><br><br>cya<br></div><div><span>quick nitin</span></div><div><span>
<br><div><span class="gmail_quote">On 6/16/06, <b class="gmail_sendername">Tim Sutton</b>
 &lt;<a href="mailto:tim@linfiniti.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tim@linfiniti.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi<br><br>You could try bitblt ing your points onto the canvas? Which version
<br>of qgis is your plugin written for? 0.8 will use qcanvas as a basis<br>for map canvas...<br><br>Regards<br><br>Tim<br>On 16/06/2006, at 00:28, nitin quick wrote:<br><br>&gt; hello everybody,<br>&gt; i currently working on a plugin which will dispaly points on
<br>&gt; current canvas with points read from a fifo.Plugin implementation<br>&gt; is done as external plugin build tutorial. Plugin is also working.<br>&gt; but i have problem of flickering. As i understood the interface for
<br>&gt; plugin building, after reading data i am calling for refresh of<br>&gt; canvas using mQGisIface-&gt;getMapCanvas()-&gt;refresh() . After this i<br>&gt; receives a signal which is renderComplete()&nbsp;&nbsp;which is connected to
<br>&gt; render(QPainter *). It is very similar to NorthArrow plugin<br>&gt; functionality.reading from a fifo is done through a thread which<br>&gt; signal to gui thread after reading data every second. i think i am<br>

&gt; refreshing to everydrawing refreshing is bound to happen. But as no
<br>&gt; of elements on canvas increases it becomes very odd and ugly . I<br>&gt; want to avoid it. Any advices how i can improve on it a nd get rid<br>&gt; of flickering.<br>&gt;<br>&gt; thanks<br>&gt; quick nitin<br>&gt; _______________________________________________
<br>&gt; Qgis-developer mailing list<br>&gt; <a href="mailto:Qgis-developer@lists.qgis.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Qgis-developer@lists.qgis.org</a><br>&gt; <a href="http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
</a><br><br>Tim Sutton<br><a href="mailto:tim@linfiniti.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tim@linfiniti.com</a><br><br><br><br></blockquote></div><br>

</span></div></blockquote></div><br>