<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">The open doc issue ticket also relates to the layer styling panel <a href="https://github.com/qgis/QGIS-Documentation/issues/2071">https://github.com/qgis/QGIS-Documentation/issues/2071</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It references an old blog post by Nathan which has meanwhile moved to <a href="https://woostuff.wordpress.com/2016/06/29/qgis-style-dock-part-2-plugin-panels/">https://woostuff.wordpress.com/2016/06/29/qgis-style-dock-part-2-plugin-panels/</a>. This post illustrates how to add a panel but I couldn't find pointers on how to update an existing one. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Regards,</div><div class="gmail_default" style="font-size:small">Anita</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 8, 2020 at 9:10 PM Anita Graser <<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</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 dir="ltr"><div style="font-size:small">Hi,<br></div><div style="font-size:small"><br></div><div>After changing a layer's symbology using Python, how can I update the layer styling panel to reflect the changes? I'm specifically asking because data-defined overrides are not displayed after<br><br>exp = 'coalesce(scale_exp("pop_max", 0, 10000000, 0, 7, 0.57), 0)'<br>vlayer.renderer().symbol().symbolLayer(0).setDataDefinedProperty(<br>    QgsSymbolLayer.PropertySize, QgsProperty.fromExpression(exp) )<br>vlayer.triggerRepaint()<br><br></div><div>Regards,</div><div>Anita</div></div>
</blockquote></div></div>