Results 1 to 2 of 2

Thread: Spaces between lines in QTextEdit

  1. #1
    Join Date
    Apr 2007
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Spaces between lines in QTextEdit

    Hi all
    How can I set the custom space between lines in QTextEdit with Qt Syle Sheets?
    Thanks for help =)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Spaces between lines in QTextEdit

    With Qt style sheets? I don't think you can. I think you should provide a custom text layout (implementation of QAbstractTextDocumentLayout) for your document. But first try with real CSS by setting "line-height" property to something more than 100%. Like "120%". I think it should work.

Similar Threads

  1. 'Annotation' of lines in a QTextEdit
    By caduel in forum Qt Programming
    Replies: 21
    Last Post: 23rd June 2007, 15:29
  2. QTextEdit with custom space between lines
    By Lele in forum Qt Programming
    Replies: 4
    Last Post: 22nd November 2006, 08:24
  3. space between lines in QTextEdit
    By Lele in forum Qt Programming
    Replies: 2
    Last Post: 19th September 2006, 13:05
  4. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03

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.