I'm building a map, with elements like QgsComposerMap of course, but also QgsComposerLabel, QgsComposerLegend ,etc... Each of these elements has a boolean "setBackgroundEnabled" property, to make them white backgrounded or not. But when aggregating these white backgrounded elements in the QgsComposition, we can see gray bands between them, caused by the deepest gray background. And it's printed when saved as image !
As for canvas, ( i mean canvas.setCanvasColor(Qt.white)), is there a way to set the color of the overall QgsComposition background (the deepest one) ?
Is there something like :
comp = QgsComposition(mapRenderer) comp.setCompositionColor(Qt.white)