<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>as far as I unterstood right, if You use one style, you are able
      to set in expression editor something like</p>
    <p>if layer = "layer_id_1", '#99ff0000',</p>
    <p>    if layer = "layer_id_2", '#9900ff00,<br>
    </p>
    <p>The code above show the way the right syntax is in help panel.<br>
    </p>
    <p>This works for nearly every option in the style dock, save this
      style.</p>
    <p>Then go to Layer-dock and click with right mouse on the layer you
      edited right now, point to "copy style > style".</p>
    <p>If your layers are organized in a group (I recommend for this
      step), than you can say "paste style" to this group and the style
      is on every layer ... it's magic :-)<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 01.04.2022 um 12:04 schrieb Roland
      Spielhofer via Qgis-user:<br>
    </div>
    <blockquote type="cite"
cite="mid:trinity-00109597-4e22-4d81-8a31-26984f545541-1648807475233@3c-app-gmx-bap42">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <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 0 10px 10px; border-left:2px solid #C3D9E5;
              word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;">
              <div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag,
                01. April 2022 um 10:37 Uhr<br>
                <b>Von:</b> "L.W. via Qgis-user"
                <a class="moz-txt-link-rfc2396E" href="mailto:qgis-user@lists.osgeo.org"><qgis-user@lists.osgeo.org></a><br>
                <b>An:</b> "Raymond Nijssen"
                <a class="moz-txt-link-rfc2396E" href="mailto:r.nijssen@terglobo.nl"><r.nijssen@terglobo.nl></a>, <a class="moz-txt-link-abbreviated" href="mailto:qgis-user@lists.osgeo.org">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 class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
                >> List info: <a
                  href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                >> Unsubscribe: <a
                  href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                > _______________________________________________<br>
                > Qgis-user mailing list<br>
                > <a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
                > List info: <a
                  href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                > Unsubscribe: <a
                  href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                _______________________________________________<br>
                Qgis-user mailing list<br>
                <a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
                List info: <a
                  href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                Unsubscribe: <a
                  href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
  </body>
</html>