[Qgis-developer] Rendering active map symbol programmatically
Andrew McClure
andrew at southweb.co.nz
Sun May 3 16:17:30 PDT 2015
Am struggling a bit with this problem. I want to render the active symbol for a layer as a QPixmap in a dialog.
I have got this far:
s = layer().rendererV2()
key = s.rootRule().findRuleByKey(s.rootRule().ruleKey())
This tells me the active rule key to be rendered but how to get the image data?
Perhaps I am barking up the wrong tree here?
Thanks
More information about the Qgis-developer
mailing list