Results 1 to 2 of 2

Thread: Increase the distance between two lines in QTextEdit

  1. #1
    Join Date
    Dec 2009
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Exclamation Increase the distance between two lines in QTextEdit

    Hi,

    I am using QTextBrowser to display some information like its having Title in Bold and then few bullet points after the title.

    I am able to create the title in BOLD , then .append(NULL) to go to next line.

    QTextListFormat::Style style = QTextListFormat::ListDisc; is used to create the bullet points and after each point I am doing textBrowser.append(NULL); to goto the next line.

    But now the problem is I just want to insert on blank line after each bullet point text line.If I use .append(NULL) it will insert the blank line along with the bulett.

    I Hope there should some way to increase the gap between two lines.
    Thanks..

  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: Increase the distance between two lines in QTextEdit

    Either set a bigger margin for the text block in question using QTextBlockFormat or find a way to increase the line height of the text (as far as I remember there is a way to do it).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTextEdit: how to get lines?
    By claudio in forum Qt Programming
    Replies: 2
    Last Post: 15th July 2007, 21:08
  2. Spaces between lines in QTextEdit
    By troorl_ua in forum Qt Programming
    Replies: 1
    Last Post: 3rd July 2007, 00:06
  3. 'Annotation' of lines in a QTextEdit
    By caduel in forum Qt Programming
    Replies: 21
    Last Post: 23rd June 2007, 15:29
  4. QTextEdit with custom space between lines
    By Lele in forum Qt Programming
    Replies: 4
    Last Post: 22nd November 2006, 08:24
  5. space between lines in QTextEdit
    By Lele in forum Qt Programming
    Replies: 2
    Last Post: 19th September 2006, 13:05

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.