Drawing vector shapes using QPainter