I have been trying to find out which the right syntax for the .setFormat() method of the ProgressBar is, but i cannot find any information about that. %p% just shows the percentage as ‘34%’ but I would like to display fractions as well like this: ‘33.7%’.
Share
Yes you can simply add
self.pbar.setFormat('%.02f%%' % (self.step))with your codeand if you want to implemnt more precise formating you can re implement QProgressbar like this maybe