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@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@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer