Every time i use tool or plugin in QGIS, i saw a kind of bar like this for indicating loading progress :

enter image description here

The different between that bar and Progress Bar is that progress bar will increase until our defined iteration (run progress), but that bar only showing up reversibly. I need to replace it with this code (statusBar) in my main script as alternate of my "please wait.." message :

self.iface.mainWindow().statusBar().showMessage("Please Wait..")

How to add that bar in my main plugin script (.py)? Is that kind of bar is similar with QProgressBar?

1 Answer 1


A good and user friendly way to do it is using the QgsMessageBar class. A first look here by the author of this class:


and then an example of a progress bar can be obtained directly from the QGIS code (Processing core plugin)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.