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
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to