Hi

On Wed, Jul 11, 2012 at 5:11 PM, PIERRE Sylvain <[email protected]> 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
> [email protected]
> 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
==============================================
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to