PDA

View Full Version : How we can underline a text while drawing a text with paint?



pratik041
28th October 2011, 04:52
Is there any shortcut method to underline a text while drawing text with painter.

ChrisW67
28th October 2011, 06:34
Shortcut? Shorter than what?

Never done it myself, but I expect the flow is: create a QFont, QFont::setUnderline() on the font, QPainter::setFont() on the painter, QPainter::drawText().

pratik041
28th October 2011, 06:46
ok Thank's i will try that.