pyqgis-qgscomposerlegend

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pyqgis-qgscomposerlegend

enzo.cocca
This post has NOT been accepted by the mailing list yet.
hi,

I need help. I want to know how I can to set the background in the legend.

I have this code:

                legend = QgsComposerLegend(c)
                legend.model().setLayerSet(mapRenderer.layerSet())
                legend.setItemPosition(1,1)#set position
                legend.setFrame(True)#add frame

thanks!!

enzo