[Qgis-developer] Symbol properties dialog from plugin

Marco Hugentobler marco.hugentobler at sourcepole.ch
Wed Dec 21 07:57:00 EST 2011


Hi Denis

You can use the class QgsSymbolV2PropertiesDialog and pass existing 
symbol and vector layer in constructor. Afaik the symbol will be changed 
directly, however it is possible to make a backup with clone().

Regards,
Marco

On 21.12.2011 13:40, Denis Rouzaud wrote:
> Hi all,
>
> I wonder if there is a way of launching the symbol properties dialog 
> (the one in the right of this image 
> http://wiki.gfoss.it/images/Symbol_properties_random.jpg ) from a 
> python script.
>
> My idea is to allow the user to edit a symbol for a mRubberBand. I 
> would launch a method symbolDialog with my current symbol as argument 
> and get the new edited one.
>
> Is there a way of doing this?
>
> Or, is it stupid to do so and what would be the other way around?
>
> Thanks a lot.
>
> Greetings,
>
> Denis
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux&  Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



More information about the Qgis-developer mailing list