[QGIS-Developer] QgsProcessingFeedback setProgressText method
Nyall Dawson
nyall.dawson at gmail.com
Thu May 27 15:24:27 PDT 2021
On Wed, 26 May 2021 at 19:43, matteo <matteo.ghetta at gmail.com> wrote:
>
> Hi all,
>
> while developing a Processing plugin, within a loop I'm using the 2
> "standard" methods to set the % of progress bar (feedback.setProgress())
> and to update accordingly the progress text (feedback.setProgressText()).
>
> In the latter case I noticed that the text is also written in the Log
> panel. Is this the standard behavior?
I can't answer if it's expected behavior or not.. it's very old code
which has been ported and moved around a lot over the years.
But I would suggest that setProgressText isn't that widely used and
isn't really necessary. If it's a useful message write it direct to
the log instead.
Nyall
>
> Cheers and thanks!
>
> Matteo
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the QGIS-Developer
mailing list