[Qgis-user] pyqgis: setting transparent color (alpha channel) to a polygon layer
Tim Sutton
lists at linfiniti.com
Wed Jul 11 11:55:24 PDT 2012
Hi
On Wed, Jul 11, 2012 at 5:11 PM, PIERRE Sylvain <sylvain.pierre at cg67.fr> wrote:
> Hi,
>
>
>
> What’s the best way to set transparent color (alpha channel) to a polygon
> layer ?
>
>
>
> I did some test using code like :
>
>
>
> rendererV2.symbol().setColor(QColor(0,128,128,2)), color is ok but layer is
> not transparent at all…
>
See here for an example:
https://github.com/timlinux/VectorTransparency/blob/master/vectortransparencydialog.py#L62
Regards
Tim
>
>
> Thanks
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
--
Tim Sutton - QGIS Project Steering Committee Member (Release Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.
Visit http://linfiniti.com to find out about:
* QGIS programming and support services
* Mapserver and PostGIS based hosting plans
* FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================
More information about the Qgis-user
mailing list