PDA

View Full Version : Spaces between lines in QTextEdit



troorl_ua
30th June 2007, 22:31
Hi all
How can I set the custom space between lines in QTextEdit with Qt Syle Sheets?
Thanks for help =)

wysota
3rd July 2007, 00:06
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.