use QPainterPath. Just add your shape to it (with its api - read Docs) and use QPainter::drawPath().