<div dir="ltr">I have been working on a plugin and as a part of its capabilities is to be able to use a .qml file or the style on the clipboard to apply it to all selected layers including groups of layers. It would be a very similar process to adjust the opacity or stroke style.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 1, 2022 at 6:04 AM Roland Spielhofer via Qgis-user <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Verdana;font-size:12px"><div>Hi,</div>

<div>thanks for the tip!</div>

<div>The layers are all of the same type (content is the same, they represent different days).</div>

<div>I wanted to preserve the different fill colors and just change the opacity and pen stroke.</div>

<div>Therefore copy stlye does not work.</div>

<div> </div>

<div>Anyway, I adjusted the layers manually meanwhile - was just curious if there is an elegant way to do this and save time next time.</div>

<div> </div>

<div>Regards,</div>

<div>Roland</div>

<div> 
<div> 
<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left:2px solid rgb(195,217,229)">
<div style="margin:0px 0px 10px"><b>Gesendet:</b> Freitag, 01. April 2022 um 10:37 Uhr<br>
<b>Von:</b> "L.W. via Qgis-user" <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
<b>An:</b> "Raymond Nijssen" <<a href="mailto:r.nijssen@terglobo.nl" target="_blank">r.nijssen@terglobo.nl</a>>, <a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a><br>
<b>Betreff:</b> Re: [Qgis-user] Change properties of multiple layer at once</div>

<div name="quoted-content">May you change the style itself and set the same style to all layers.<br>
<br>
You can change i.e. color of lines by "type of line" / attribute values<br>
so you can use one style for multiple layers.<br>
<br>
<br>
Am 01.04.2022 um 10:13 schrieb Raymond Nijssen via Qgis-user:<br>
> Don't know how to do that using the GUI, but for the opacity you can<br>
> use these 2 lines of python in the QGIS python console. It will set<br>
> all your selected layers to 50% opacity.<br>
><br>
><br>
> for layer in iface.layerTreeView().selectedLayers():<br>
>     layer.setOpacity(.5)<br>
><br>
><br>
> I think the stroke style is harder to change because all these layers<br>
> can have different symbologies.<br>
><br>
> Hope it helps!<br>
> Raymond<br>
><br>
><br>
> On 01-04-2022 09:47, Roland Spielhofer via Qgis-user wrote:<br>
>> Hi,<br>
>> I have a set of similar layers where I would like to change certain<br>
>> properties for all layers in the same way.<br>
>> * change opacity to 50%<br>
>> * change stroke style to "no pen"<br>
>> When I select multiple layers and open properties -> symbology, I<br>
>> just change the styling of the first layer, not for all.<br>
>> Is there a way to do this?<br>
>> Regards,<br>
>> Roland<br>
>><br>
>> _______________________________________________<br>
>> Qgis-user mailing list<br>
>> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</div>
</div>
</div></div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>