Graphics::fillRoundedRectangle() with setOpaque(true)


#1

Hi.

I have a rectangle component with rounded corners drawn with fillRoundedRectangle().
Since it has setOpaque(true) the space left by the rounded corners was replaced by 4 back holes.

I tried adding 4 g.fillRec() to cover those 4 holes but they affected the colour of the component in the intersected area.

Now I can draw a path with 2 lines and an arc and use g.fillPath() but it that really necessary? isn’t any better solution for that?

Thanks.