Results 1 to 8 of 8

Thread: line spaceing in QTextDocument

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    244
    Thanks
    27
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default line spaceing in QTextDocument

    Following my previous post, i`d need custom line spacing in a QTextDocument.

    No proper solution was found here:
    http://www.qtcentre.org/threads/1929...t-line-spacing

    But after the post, an addition was supposedly made to Qt in 4.8.0:
    https://bugreports.qt-project.org/browse/QTBUG-14470

    Status: Closed Closed
    Priority: P2: Important P2: Important
    Resolution: Done
    Affects Version/s: 4.7.0
    Fix Version/s: 4.8.0
    However, the thread fails to mention what exactly was added/changed, and i am unable to find anything in Qt 4.8.1. :/

    I figured i am supposed to layout every single paragraph in the document by subclassing this:
    http://doc.qt.nokia.com/4.7-snapshot...entlayout.html

    but i still wouldnt know how to change the line space...


    Funny, Qt offers so much awesomeness, and then it`s these little things that you are left spending time on...

  2. The following user says thank you to tuli for this useful post:

    Toniy (2nd November 2016)

Similar Threads

  1. QTextDocument - line spacing
    By mazurekwrc in forum Qt Programming
    Replies: 5
    Last Post: 24th February 2011, 23:23
  2. Horizontal line in QTextDocument
    By Ginsengelf in forum Qt Programming
    Replies: 2
    Last Post: 11th February 2011, 09:37
  3. Getting start index and length of a line in QTextDocument
    By slandvogt in forum Qt Programming
    Replies: 1
    Last Post: 3rd July 2010, 11:13
  4. QTextDocument and line height
    By vooft in forum Qt Programming
    Replies: 0
    Last Post: 25th November 2008, 16:47
  5. QTextDocument line number
    By bunjee in forum Qt Programming
    Replies: 14
    Last Post: 10th June 2008, 13:49

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.