Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove text from qt progress bar

Tags:

c++

qt

qt5

qt5.4

How can I remove the text (i.e. 24%) from the progress bar? I only want to show a plain progress bar without any text. Is that possible?

like image 886
gartenriese Avatar asked Nov 20 '25 07:11

gartenriese


1 Answers

Yes, you can achieve with setTextVisible() method, just set false. For example:

QProgressBar *pr = new QProgressBar;
pr->setValue(50);
pr->setTextVisible(false);
like image 162
Kosovan Avatar answered Nov 22 '25 21:11

Kosovan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!