PDA

View Full Version : How to draw the below round rect?



tszzp
7th January 2010, 08:16
I want to draw the below round rect, it has the round corner in the topright and bottomright, it is still the rectangle in the topleft and bottomleft. How to draw it? The function Painter::DrawRoundedRect must draw the round rect with the xRadius and yRadius, so it can't draw the above rect directly. thanks.

faldzip
7th January 2010, 08:58
use QPainterPath. Just add your shape to it (with its api - read Docs) and use QPainter::drawPath().