Re: [QGIS-Developer] process bar in processing algs

2021-07-20 Thread pierluigi de rosa
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

Re: [QGIS-Developer] process bar in processing algs

2021-07-20 Thread Germán Carrillo
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

Re: [QGIS-Developer] process bar in processing algs

2021-07-20 Thread matteo
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

Re: [QGIS-Developer] process bar in processing algs

2021-07-20 Thread Prem Kumar
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

Re: [QGIS-Developer] process bar in processing algs

2021-07-20 Thread pierluigi de rosa
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

Re: [QGIS-Developer] process bar in processing algs

2021-07-20 Thread matteo
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:

[QGIS-Developer] process bar in processing algs

2021-07-20 Thread pierluigi de rosa
Dear User, I have a plugin that call a processing alghoritm I would like to communicate to the user with a progress bar below my code: # native:creategrid params_creategrid = { 'CRS': crs_layer, 'EXTENT': extent_coords, 'HOVERLAY': 0, 'HSPACING': resolution, 'OUTPUT':