How to add loading bar in QGIS Plugin development?

المشرف العام

Administrator
طاقم الإدارة
Every time i use tool or plugin in QuantumGIS, i saw a kind of bar like this for indicating loading progress :



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..")open_set.add(base_coordinate)....My Question is :

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



أكثر...
 
أعلى