UPDATE: I used:
self.ui.progressbar.setStyleSheet('text-align: center')
self.ui.progressbar.setStyleSheet('text-align: center')
To copy to clipboard, switch view to plain text mode
and it works. But I would still like to know how to set the Alignment in the above question.
Also, I have a related question:
Throughout the loading process, I set the progress bar percentage with this code:
progressBar.setValue(90)
progressBar.setValue(90)
To copy to clipboard, switch view to plain text mode
with various percentages. Then what is the proper syntax/code to attach this percentage to the "loading files" text to get "Loading files 90%".
the code should look something like:
self.ui.progressbar.setFormat('Loading files . . .') + str(the percentage) ?????
self.ui.progressbar.setFormat('Loading files . . .') + str(the percentage) ?????
To copy to clipboard, switch view to plain text mode
thanks
Bookmarks