Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何24%从进度条中删除文本(即)?我只想显示一个没有任何文本的普通进度条。那可能吗?
24%
是的,你可以用setTextVisible()方法来实现,只需 set false。例如:
setTextVisible()
false
QProgressBar *pr = new QProgressBar; pr->setValue(50); pr->setTextVisible(false);