I need to draw a progress bar like item with a text and a fill rect. I combine two rects (one empty, one filled) to draw the progress, but I have a problem with the text. I need to draw the filled part till the pogress with a color and the empty part till the end with another color.
So the idea is to have two text items but I can't see in the API a method to clip the drawing, like in a QPainter.
How can I achieve this ?