PDA

View Full Version : QgraphicsSimpleTextItem, QPen outline



user14921
9th October 2011, 01:55
is there a way to get the outline draw by qpen on a qgrphicssimpletextitem to only draw as an outline?
it seems it draws centered instead of only outlining

wysota
9th October 2011, 17:07
Use QGraphicsPathItem instead of QGraphicsSimpleTextItem and use QPainterPath::addText(). Make the item have an empty brush to prevent filling the shape.