Set selection color transparent and border color red in QGis using python.

المشرف العام

Administrator
طاقم الإدارة
I have a layer with different information. whenever i select any polygon i want to change the selection color to "Transparent". i am able to achieve that using

iface.mapCanvas().setSelectionColor( QColor("Transparent") )but i want border color different such as Red or any other color. for an example in ArcMap there is an option for set the border color, border width and many more.how i can achieve that using python script in QGIS.



أكثر...
 
أعلى