[Qgis-developer] A faster update than mapCanvas().refresh()?

Rudi von Staden rudivs at gmail.com
Mon Mar 11 08:37:34 PDT 2013


I have a whole bunch of markers (QgsVertexMarker), and I'm trying to
highlight the active one when the selection in a list changes. To do this I
make the active marker red, while the others are green. However, in order
for the new colour to be visible, I have to do a mapCanvas().refresh(),
which takes about a second. The idea is that it should be quick and easy to
scroll through the markers, so it's quite annoying that it takes so long to
just change the colour. Is there some other way to update just the marker
itself? I see there is a paint(QPainter) method for QgsVertexMarker - is
there some way to use that?

Thanks,
Rudi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130311/0fb46b84/attachment.html>


More information about the Qgis-developer mailing list