[QGIS-Developer] Mesh Layers: Way to update/repaint the QgsMeshRendererScalarSettingsWidget after recreating color ramp

Vincent Cloarec vcloarec at gmail.com
Tue Nov 29 08:25:22 PST 2022


Hi Richard,

Can you precise how do you set the color ramp to the mesh layer ? Maybe you
set only classes (color/value) ?

Vincent

Le mar. 29 nov. 2022 à 08:47, Richard Duivenvoorde via QGIS-Developer <
qgis-developer at lists.osgeo.org> a écrit :

> Hi Devs,
>
> I'm loading/styling QGIS via pyqgis.
> I create my own (dynamic) color ramp, which is shown in the map.
>
> My issue now is that the color ram in the Layer styling widget does not
> represent the actual ramp I created (see screendump).
>
> I can force a 'repaint' of that widget, by adding a value in the gui via
> the green PLUS sign (and throwing it away).
>
> Is there a way to do this 'update' of the widget via code?
>
> There is no way to get to the QgsMeshRendererScalarSettingsWidget (other
> then maybe walk over the ui widget tree) is it? Or some signal I can
> emit?
>
> Anybody an idea?
>
> Or is this not something that is foreseen (I mean: loading/styling mesh
> via python code)?
>
> Thanks for any hints,
>
> Regards,
>
> Richard Duivenvoorde_______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221129/ecd63dc2/attachment.htm>


More information about the QGIS-Developer mailing list