Re: QProgressbar text format
Hi, the setFormat() method only changes the way the progress is displayed. It does not change the class internally so it will still use int as datatype.
Ginsengelf
Re: QProgressbar text format
Then, how to change this?
Thanks,
Jothy
Re: QProgressbar text format
I think one solution can be take the value in the multiple of 10 or 100, for example:
if you want to give value as 45.46 then set the range for QProgressBar to (0 to 10000) and then multiply value 45.46 with 100 and then give it to set value.
Code:
pbar.setRange(0, 10000);
pbar.setValue(4546);