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.
Thanks
-
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.
~ Tectu
-
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.
Like this:
!https://dl.dropboxusercontent.com/u/20141415/Text_Border.png(Text Border)!Thanks
-
Oh sorry, no idea how to do that properly.
Hopefully somebody else can help you.