×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    How to change line spacing in QPainter::drawText

    Hi everyone,

    I've searched the web, but haven't been able to find a solution to my problem. I'd like to change the line spacing in drawText but I can't figure out how to go about it. Could any kind person point me in the right direction?

    TIA
    Ziggx
    Last edited by ziggx; 2011-01-29 at 15:47. Reason: spelling mistake

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How to change line spacing in QPainter::drawText

    I can't see a way to do it. About all I can figure is to roll your own -- use QFontMetrics::elidedText() and/or size() to figure out where to split the line, then split and place each line individually.

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    Re: How to change line spacing in QPainter::drawText

    Yeah,

    That's the way I think I have to go - bit of bummer though. Thanks for the input

    Best wishes
    Ziggx

Similar Threads

  1. Replies: 1
    Last Post: 2010-05-23, 15:57
  2. Replies: 1
    Last Post: 2009-06-07, 06:38
  3. Line Spacing in Symbian 7.0
    By brain_dead00 in forum Symbian
    Replies: 0
    Last Post: 2004-07-23, 10:19
  4. How to set line spacing in textview?
    By petrikaikko in forum Symbian
    Replies: 0
    Last Post: 2002-11-01, 14:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×