[Interest] Set line spacing in QTextEdit

Vik k digitloft at gmail.com
Sat Jul 23 13:55:01 CEST 2016

Hi all,

I am trying to change line spacing in QTextEdit but can't seem to find any
information on how to do it?..

I've done quite a lot of googling and the best 'solution' so far is to use
QTextLayout on an empty widget and just render the text there. This
'solution' would require me to write my own text editor class implement the
cursor, etc which is a lot of work.

Is there a way to somehow set line spacing in QTextEdit tho? I am using

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160723/8305c8cb/attachment.html>

More information about the Interest mailing list