PyQt5 – How to set text to progress bar ?
In this article we will see how to set text to progress bar. When we create a progress bar only progress percentage text is visible but we can also set some text on it.
Below is how normal progress bar vs progress bar with text looks like.
In order to do this we will use
setFormat method, although it is used to set the format i.e percentage indicator but if we pass normal text to it it will display it in process bar.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course