[QGIS-Developer] How to set defaults to QgsProcessingParameterMultipleLayers

C Hamilton adenaculture at gmail.com
Mon Jan 30 07:31:56 PST 2023


>
> > Is there a way to automatically populate as default value of selected
> layers in QgsProcessingParameterMultipleLayers with the selected layers or
> selected groups of layers in the "Layer Panel"?  This would be incredibly
> useful.
>
> You'd (unfortunately -- it's not a trivial change) need to do this via
> a custom Processing widget wrapper, so that your parameter gets its
> own widget class where you can implement this logic.


Nyall, Is there an example somewhere on how to do a custom processing
widget wrapper?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230130/7848fef0/attachment.htm>


More information about the QGIS-Developer mailing list