Results 1 to 3 of 3

Thread: How we can underline a text while drawing a text with paint?

  1. #1
    Join Date
    Aug 2011
    Location
    Bangalore, India
    Posts
    23
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows Symbian S60

    Cool How we can underline a text while drawing a text with paint?

    Is there any shortcut method to underline a text while drawing text with painter.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,734
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How we can underline a text while drawing a text with paint?

    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().

  3. #3
    Join Date
    Aug 2011
    Location
    Bangalore, India
    Posts
    23
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows Symbian S60

    Default Re: How we can underline a text while drawing a text with paint?

    ok Thank's i will try that.

Similar Threads

  1. Replies: 5
    Last Post: 28th May 2010, 10:45
  2. drawing Text
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 11
    Last Post: 15th June 2009, 09:57
  3. Drawing Text
    By QbelcorT in forum Qt Programming
    Replies: 7
    Last Post: 8th March 2009, 17:33
  4. Replies: 1
    Last Post: 3rd September 2008, 14:16
  5. Qt text edit paint event
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2007, 18:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.