QPainter::drawStaticText text border
Hi, is there a way do draw a text border with drawStaticText? I need rich text support and a font outline. Using QPainterPath is not an option, because it doesn't support rich text.
Just create a custom class that is derived from QGraphicsTextItem and implement a custom paint() method. Call the default paint() in it first and then simply draw a rectangle over/around it.
Thanks for the reply, but I think I didn't made clear what I'm searching for.
I don't want a rectangle behind or around the text. I want a font outline.
Oh sorry, no idea how to do that properly.
Hopefully somebody else can help you.