Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Align text left and center in QProgressBar?
Fuchsiaff last edited by
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:
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.