[Qt-interest] How to get/set line spacing for a QTextEdit?

Joshua Grauman jnfo-c at grauman.com
Thu Dec 2 21:14:45 CET 2010


Danny,

I've implemented this feature and sent the patch to Qt. I believe it is 
currently being tested to be integrated into Qt. See here:
http://qt.gitorious.org/qt/qt/merge_requests/2305

I also have a hack to get it to work currently, but you're better off with 
the patch if you can go that route. The hack is here (under 
qtextdocumentlayout): 
http://scrolltag.com/system/files/files/scrolltag_qtlibs.zip

Josh

> Hi Danny,
>
> I pretty sure Qt doesn't support line spacing for QTextEdit - at least in 4.
> 6.0.
>
> Search the list archives.  IIRC someone asked about this and ended up
> implementing it themselves!
>
> Tony.
>
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of danny
> Sent: Friday, 3 December 2010 00:49
> To: Qt-interest Interest
> Subject: [Qt-interest] How to get/set line spacing for a QTextEdit?
>
>
> Hi all,
>
> Could I get/set the line spacing for a QTextEdit??
>
> Any one could give me some clues?  I want to use QTextEdit(or other ralated)
> to implement a text editor and it could be set some format such as the line
> spacing.
>
> Thanks in advance.
>
>
>



More information about the Qt-interest-old mailing list