[QGIS-Developer] Processing Question: How to Select All with QgsProcessingParameterField

C Hamilton adenaculture at gmail.com
Thu Aug 27 10:32:43 PDT 2020


Nyall,

Thanks! That is exactly what I was looking for.

Calvin

On Wed, Aug 26, 2020 at 6:58 PM Nyall Dawson <nyall.dawson at gmail.com> wrote:

> On Thu, 27 Aug 2020 at 04:49, C Hamilton <adenaculture at gmail.com> wrote:
> >
> > The default operation of a QgsProcessingParameterField in a processing
> algorithm with allowMuliple set to True is to have none of the attribute
> fields selected. Is it possible to have all fields selected by default when
> a layer is selected. The field names are not known ahead of time until the
> layer is selected.
>
> Set "defaultToAllFields" in the QgsProcessingParameterField constructor to
> True.
>
> Nyall
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200827/df833b33/attachment.html>


More information about the QGIS-Developer mailing list