Qt Code:
int heightValue = (int)qRound(((float)currentValue / maxProgressBarValue) * heightOfTheProgressBar);To copy to clipboard, switch view to plain text mode
And I draw with QPainter a rectangle like that:
Qt Code:
painter.drawRect(0, 0, 100, heightValue);To copy to clipboard, switch view to plain text mode
Bookmarks