Hi Calvin,

I normally use addLayerToLoadOnCompletion to load some additional layer into QGIS from Processing script:

context.addLayerToLoadOnCompletion(
    yourlayer.source(),
    context.LayerDetails(
            name='mylayername',
            project=context.project()
        )
)

but maybe there are better methods :)

Cheers

Matteo
_______________________________________________
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

Reply via email to