[Qgis-developer] flickering on display through plugin

Tim Sutton tim at linfiniti.com
Fri Jun 16 10:21:53 EDT 2006


Hi

You could try bitblt ing your points onto the canvas? Which version  
of qgis is your plugin written for? 0.8 will use qcanvas as a basis  
for map canvas...

Regards

Tim
On 16/06/2006, at 00:28, nitin quick wrote:

> hello everybody,
> i currently working on a plugin which will dispaly points on  
> current canvas with points read from a fifo.Plugin implementation  
> is done as external plugin build tutorial. Plugin is also working.  
> but i have problem of flickering. As i understood the interface for  
> plugin building, after reading data i am calling for refresh of  
> canvas using mQGisIface->getMapCanvas()->refresh() . After this i  
> receives a signal which is renderComplete()  which is connected to  
> render(QPainter *). It is very similar to NorthArrow plugin  
> functionality.reading from a fifo is done through a thread which  
> signal to gui thread after reading data every second. i think i am  
> refreshing to everydrawing refreshing is bound to happen. But as no  
> of elements on canvas increases it becomes very odd and ugly . I  
> want to avoid it. Any advices how i can improve on it a nd get rid  
> of flickering.
>
> thanks
> quick nitin
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer

Tim Sutton
tim at linfiniti.com






More information about the Qgis-developer mailing list