<div dir="ltr"><div>Hi Richard,</div><div><br></div><div>Can you precise how do you set the color ramp to the mesh layer ? Maybe you set only classes (color/value) ?</div><div><br></div><div>Vincent<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 29 nov. 2022 à 08:47, Richard Duivenvoorde via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Devs,<br>
<br>
I'm loading/styling QGIS via pyqgis.<br>
I create my own (dynamic) color ramp, which is shown in the map.<br>
<br>
My issue now is that the color ram in the Layer styling widget does not <br>
represent the actual ramp I created (see screendump).<br>
<br>
I can force a 'repaint' of that widget, by adding a value in the gui via <br>
the green PLUS sign (and throwing it away).<br>
<br>
Is there a way to do this 'update' of the widget via code?<br>
<br>
There is no way to get to the QgsMeshRendererScalarSettingsWidget (other <br>
then maybe walk over the ui widget tree) is it? Or some signal I can <br>
emit?<br>
<br>
Anybody an idea?<br>
<br>
Or is this not something that is foreseen (I mean: loading/styling mesh <br>
via python code)?<br>
<br>
Thanks for any hints,<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>