[Qgis-developer] flickering on display through plugin

nitin quick quick.nitin at gmail.com
Thu Jun 15 23:28:25 EDT 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20060616/049c706e/attachment.html


More information about the Qgis-developer mailing list