Dears devs,

I'm currently developping a processing provider plugin that will handle .mat 
file (MATLAB file).
For a better user experience, I add a custom parameter definition and 
widgetwrapper.

Full snippet here: https://gitlab.com/-/snippets/4872859

PyQGIS QgsAbstractProcessingParameterWidgetWrapper doc: 
https://qgis.org/pyqgis/master/gui/QgsAbstractProcessingParameterWidgetWrapper.html
This doc says that createWidget method MUST be implemented in subclass.
After strugling a bit, I noticed that with my approach using 
`self.setMetadata({"widget_wrapper": {"class": 
QgsProcessingMatFieldWidgetWrapper}})` in parameter def, the method 
createWrappedWidget is called and not createWidget.
Even in widget factory, createWidget is not called, createWrappedWidget is.

Is the doc still up-to-date ?
Current implementation works fine without.

Kind regards,


_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to