[QGIS-Developer] Mesh Layers: Way to update/repaint the QgsMeshRendererScalarSettingsWidget after recreating color ramp
Richard Duivenvoorde
rdmailings at duif.net
Tue Nov 29 04:46:59 PST 2022
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2022-11-29 13-42-04.png
Type: image/png
Size: 46162 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221129/0e29d53c/attachment-0001.png>
More information about the QGIS-Developer
mailing list