Nyall, That worked.
Thanks On Mon, Feb 14, 2022 at 8:59 PM Nyall Dawson <nyall.daw...@gmail.com> wrote: > On Tue, 15 Feb 2022 at 01:34, C Hamilton <adenacult...@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 >
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer