I am not sure why this has anything to do with SVG.

Normally if you want a rounded rectangle when rendering your widget you would use QPainter::drawRoundedRect(). If you want a filled rectangle then use QPainter::fillRect().