<div dir="ltr">Nyall,<div><br></div><div>That worked.</div><div><br></div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 14, 2022 at 8:59 PM Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 15 Feb 2022 at 01:34, C Hamilton <<a href="mailto:adenaculture@gmail.com" target="_blank">adenaculture@gmail.com</a>> wrote:<br>
<br>
> 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.<br>
<br>
You have to use QgsProcessingLayerPostProcessorInterface for this -- see:<br>
<a href="https://qgis.org/pyqgis/master/core/QgsProcessingLayerPostProcessorInterface.html" rel="noreferrer" target="_blank">https://qgis.org/pyqgis/master/core/QgsProcessingLayerPostProcessorInterface.html</a><br>
and<br>
<a href="https://qgis.org/pyqgis/master/core/QgsProcessingContext.html#qgis.core.QgsProcessingContext.LayerDetails.setPostProcessor" rel="noreferrer" target="_blank">https://qgis.org/pyqgis/master/core/QgsProcessingContext.html#qgis.core.QgsProcessingContext.LayerDetails.setPostProcessor</a><br>
<br>
(or an example here: <a href="https://gis.stackexchange.com/a/401440/28443" rel="noreferrer" target="_blank">https://gis.stackexchange.com/a/401440/28443</a> )<br>
<br>
Nyall<br>
</blockquote></div>