RESOLVED: I finally found the answer. the following line does what I want.
Qt Code:
  1. self.ui.progressbar.setFormat('Loading files . . .%p%')
To copy to clipboard, switch view to plain text mode