[QGIS-Developer] Is QgsAbstractProcessingParameterWidgetWrapper.createWidget still mandatory in subclass ?

Nicolas Godet nicolas.godet at outlook.fr
Thu Jul 17 02:03:58 PDT 2025


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,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20250717/00d43656/attachment.htm>


More information about the QGIS-Developer mailing list