Is it possible to edit the spacing/margin between each line in a qplaintextedit?
I have tried editing the stylesheet using normal html/css tags (line-height), but it doesn’t seem to make a difference.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A co-worker of mine tried to solve a similar problem a few days ago with Qt 4.7.4. What he found is that we could set line spacing with class QTextBlockFormat:
Unfortunately this functionality was introduced in Qt 4.8.
So you can set line spacing if it is possible for you to use Qt 4.8, QTextBlockFormat, QTextDocument and QTextEdit instead of QPlainTextEdit.