[QGIS-Developer] Processing algorithm to open up external dialog window

C Hamilton adenaculture at gmail.com
Thu Feb 17 07:53:30 PST 2022


Nyall,

That worked.

Thanks

On Mon, Feb 14, 2022 at 8:59 PM Nyall Dawson <nyall.dawson at gmail.com> wrote:

> On Tue, 15 Feb 2022 at 01:34, C Hamilton <adenaculture at gmail.com> wrote:
>
> > Is there a QgsProcessingAlgorithm method that is called after the output
> layer has been added to the QGIS layers panel? If there is then at that
> point I should be able to add it to my dialog box.
>
> You have to use QgsProcessingLayerPostProcessorInterface for this -- see:
>
> https://qgis.org/pyqgis/master/core/QgsProcessingLayerPostProcessorInterface.html
> and
>
> https://qgis.org/pyqgis/master/core/QgsProcessingContext.html#qgis.core.QgsProcessingContext.LayerDetails.setPostProcessor
>
> (or an example here: https://gis.stackexchange.com/a/401440/28443 )
>
> Nyall
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220217/f3f5d16e/attachment.html>


More information about the QGIS-Developer mailing list