Results 1 to 2 of 2

Thread: Spaces between lines in QTextEdit

Hybrid View

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

    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,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    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, 16:29
  2. QTextEdit with custom space between lines
    By Lele in forum Qt Programming
    Replies: 4
    Last Post: 22nd November 2006, 09:24
  3. space between lines in QTextEdit
    By Lele in forum Qt Programming
    Replies: 2
    Last Post: 19th September 2006, 14:05
  4. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 07: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
  •  
Qt is a trademark of The Qt Company.