... and if you would post your solution others would probably be happy as well.
Ginsengelf
... and if you would post your solution others would probably be happy as well.
Ginsengelf
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
Last edited by MathFurious; 8th February 2018 at 14:35. Reason: updated contents
Bookmarks