1

I was wondering either there is any easy way of displaying current and maximum value of QProgressBar as seconds in HH:mm:ss format. Currently my format is %v/%m, is there a way to show it as time?

Łukasz Przeniosło
  • 2,725
  • 5
  • 38
  • 74

1 Answers1

1

You can use QProgressBar::setFormat(QString); you can use any text you want, just convert your time to QString.

http://doc.qt.io/qt-5/qprogressbar.html#format-prop

gengisdave
  • 1,969
  • 5
  • 21
  • 22