<div dir="ltr">Hi,<div>I'm speaking about this:</div><div><br></div><div><img src="cid:ii_kojoc1yi0" alt="2021-05-11_08-48-53.jpg" width="460" height="220"><br></div><div><br></div><div>I want check it automatically when load an vector or using this on specific layer</div><div><br></div><div>E</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 11 mag 2021 alle ore 08:41 Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/11/21 12:04 AM, Enzo Cocca wrote:<br>
> Hi Alex,<br>
> Thanks for replay.<br>
> Im speaking about the legend into layer panel. I'm not understand if I can set the filter legend on map when load an view with a style into layer panel. Into layer panel exist an check toolbox for this and so i would activate it when load my view or better if possible set the filter just on specific vectors.<br>
<br>
Not sure, but you are talking about rule base styling, and you want to change the visibility of one of the 'rules' as if you check the class/rule in the Layer Manager (or in the Rulebased symbology panel)?<br>
<br>
If so: maybe you can do it via the layer tree api?<br>
<a href="https://www.lutraconsulting.co.uk/blog/2014/07/06/qgis-layer-tree-api-part-1/" rel="noreferrer" target="_blank">https://www.lutraconsulting.co.uk/blog/2014/07/06/qgis-layer-tree-api-part-1/</a><br>
<br>
Find the specific node and enable/disable it?<br>
<br>
Another option is go into the symbology, find the Rule and disable it by using setActive?<br>
<a href="https://qgis.org/api/3.18/classQgsRuleBasedRenderer_1_1Rule.html#a8306b64ca0ad4371fce04f4297647d35" rel="noreferrer" target="_blank">https://qgis.org/api/3.18/classQgsRuleBasedRenderer_1_1Rule.html#a8306b64ca0ad4371fce04f4297647d35</a><br>
<br>
But to be honest: I've no experience with it<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Enzo Cocca PhD</div><div dir="ltr">in "Science and Technology for Archaeology and Cultural Heritage"</div><div dir="ltr"><br></div><div dir="ltr"><div style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;background-color:transparent"><div style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;overflow:visible"><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;overflow:visible">ISMEO</span></div><div style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;overflow:visible">International Association of Mediterranean and Oriental Studies </div></div><br></div><div dir="ltr"><img width="200" height="75" style="font: 400 13.33px / 19.99px Arial, Helvetica, sans-serif; text-align: left; color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: visible; text-decoration: none; word-spacing: 0px; white-space: normal; background-color: transparent;" src="https://docs.google.com/uc?export=download&id=1ho_PBK4C-4cl8Ubqw4oyvusZOhM5P92l&revid=0B2EWPB0itz-iQ3dwZVBaaTVKcEN4VUpwa09scDNRNmNvQkw0PQ"></div><div dir="ltr"><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike><br><div>mail: <a href="mailto:enzo.ccc@gmail.com" target="_blank">enzo.ccc@gmail.com</a></div><div>cell: +393495087014</div><div><br></div></div></div></div></div></div></div></div></div>