[Qgis-developer] howto set FillStyle noBrush with new rendererV2?
Nico Hardebol - CITG
N.J.Hardebol at tudelft.nl
Fri Jun 22 08:47:00 PDT 2012
Dear developers,
Along with other major changes in fracture software that we design with using the QGIS API, we decided to switch to the master API 1.8/1.9.
Using the python interface, given that self.DigiSurfaceDataLayer.isUsingRendererV2() is True and with self.DigiSurfaceDataLayer.rendererV2().symbol() of type QgsSingleSymbolRendererV2:
how do I set FillStyle and LineWidth?
Previously with the old renderer I could do:
DigiSurfDataLayerSymbol = self.DigiSurfaceDataLayer.renderer().symbol()
DigiSurfDataLayerSymbol.setFillStyle( QtCore.Qt.NoBrush )
DigiSurfDataLayerSymbol.setLineWidth( 1.0 )
With the new SymbolV2:
* Should I use createSimple() function?
* It asks for a QgsStringMap<http://qgis.org/api/qgsrendererv2_8h.html#ab13d4e9821da606b92748097c691b9dd>/QMap? How do I fill this? With what keys?
Kind regards, Nico
----------------------------------------------------
TU Delft
Civil Engineering and Geosciences
Dept. Applied Geology
Room 3.17
2628 CN Delft, NL
Tel +31 15 27 82707
Fax +31 15 27 81189
N.J.Hardebol at tudelft.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120622/b3962eb6/attachment.html>
More information about the Qgis-developer
mailing list