I have a working Q Progress Bar with the percentage completion showing out to the right. I would like to add the text "Loading files" to the inside of the bar. In looking at the message boards for info, I found the following, which I think may do what I need (but have not tested):
Found code:
progressBar.setFormat("Loading...");
progressBar.setAlignment(Qt::AlignCenter);
progressBar.setFormat("Loading...");
progressBar.setAlignment(Qt::AlignCenter);
To copy to clipboard, switch view to plain text mode
My code is this:
self.ui.progressbar.setFormat('Loading files . . .')
self.ui.progressbar.setAlignment(xxxxxxxxxxx)
self.ui.progressbar.setFormat('Loading files . . .')
self.ui.progressbar.setAlignment(xxxxxxxxxxx)
To copy to clipboard, switch view to plain text mode
I need help in translating the second line of the code I found into the format I need, ie., what do I put where the XXXXXXX are showing in my code? PyCharm, my IDE, gave me hints of what to put where the x's are like "Qt_Alignment=" but I don't know what else to put after the =
Bookmarks