Thanks guys,
I solved my problem
In particular it was the feedback.progressChanged.connect suggested by
German the missing part.
Cheers
Pierluigi
Il giorno mar 20 lug 2021 alle ore 15:20 Germán Carrillo <
carrillo.ger...@gmail.com> ha scritto:
> Hi Pierluigi,
>
>
> you need to create your own *
Hi Pierluigi,
you need to create your own *feedback* object and connect its
*progressChanged* SIGNAL to your progressbar's *setValue* SLOT, in this way:
feedback = QgsProcessingFeedback()
feedback.progressChanged.connect(progressBarGrid.setValue)
params_creategrid = {
# Set key-value param
Hi Pierluigi,
can you please explain me better?
I have self plugin that in particular part use this code
result_grid = processing.run("native:creategrid", params_creategrid)
as explained by Prem, if you want to add the progress when you call a
"native" algorithm of QGIS within your algorith
Hi Mate,
Every processing tool has to implement its business logic in
processAlgorithm() function and it has below syntax.
*def processAlgorithm(self, parameters, context, feedback):*
One of the input parameters is feedback and this as a parameter variable
should be given to the *processing.run(
Hi Matteo,
can you please explain me better?
I have self plugin that in particular part use this code
result_grid = processing.run("native:creategrid", params_creategrid)
But I would like to use note the progressBar of processing but a personal
bar in the QDialog
It is possible?
P
Il giorno mar
Hi Pierluigi,
you can fill the progressBar of the Processing algorithm with
feedback.setProgress(integer).
Hope this helps
Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis