Align text left and center in QProgressBar?
Unsolved
General and Desktop
-
I have a progress bar where I want the text to be in the left side and centered height wise, not width wise.
I tried this:
self.ram = QProgressBar(self) self.ram.setAlignment(Qt.AlignLeft | Qt. self.ram.setFixedWidth( self.ram.setValue(100)
But that doesn't give me the results wanted.
Is it even possible?
I'm looking for results like this: -
Hi,
setAlignment, as stated, in the doc, is for the progress bar alignment.
If you want to change the text position, you should look into QProxyStyle.