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

2013-03-12 Thread p0cisk
Hi
Maybe you can replace QgsVertexMarker with QgsMapCanvasItem which has own
paint method? This is implemented in GPS live tracking.
You can find sample code here:
http://www.mail-archive.com/qgis-developer@lists.osgeo.org/msg00297.html

Regards



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/A-faster-update-than-mapCanvas-refresh-tp5039627p5039948.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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

2013-03-11 Thread Rudi von Staden
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
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer