[Qgis-developer] Rendering active map symbol as QPixmap

Andrew McClure andrew at southweb.co.nz
Thu May 7 14:00:11 PDT 2015


Any takers for this one? I'd like 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