PDA

View Full Version : Drawing of Rectangle which is rounded from only two side



vinayptl
5th March 2013, 06:28
I am trying to draw rectangle which should be rounded from borrom two side. i did manage to draw rectangle which is rounded from all four side using drawRoundedRect(QRect(-95, 2, 72, 48), 8, 8); . but i only wants two sides to be rounded.

ChrisW67
5th March 2013, 07:03
What would you like us to do with your statement?

What else have you tried?
How do you think you can construct your semi-rounded rectangle from parts?
How do you think you might be able to draw only the lower half of a rectangle?
What functions in QPainter might help?