[QGIS-Developer] process bar in processing algs

pierluigi de rosa pierluigi.derosa at gmail.com
Tue Jul 20 01:42:19 PDT 2021


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': 'memory:',
    'TYPE': 0,
    'VOVERLAY': 0,
    'VSPACING': resolution
}

result_grid = processing.run("native:creategrid", params_creategrid)
grid_output = result_grid['OUTPUT']

I would like to show a progressbar in my QprogressBar
called progressBarGrid.
Thanks for your help
Pierluigi
-- 
Ing. Pierluigi De Rosa (PhD in Earth Science)
Contract Professor of Geographic Information System at University of Perugia
cel: 3497558268 / fax: 075 7823038
skype: pierluigi.derosa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210720/1c753c63/attachment.html>


More information about the QGIS-Developer mailing list