[Qt-interest] How to get/set line spacing for a QTextEdit?
Joshua Grauman
jnfo-c at grauman.com
Fri Dec 3 06:13:33 CET 2010
Danny,
Note that you're better off downloading the patch and recompiling Qt if
you are able, as the patch has more options and is less of a hack (and you
won't need to change your program once the patch is accepted into Qt). If
you use the hack, you'll have to change your code to move to the patch in
future versions. My understanding is that the patch could be accepted very
soon, but I'm not sure how long it will take to make it downstream into a
final version of Qt...
Josh
> Hi ,
Thanks a lot. It's just the thing I need, and I hope it could be accepted
as soon as possible, and now I will try to add it by your codes.
--
Best Regards,
At 2010-12-03 04:14:45£¬"Joshua Grauman" <jnfo-c at grauman.com> wrote:
>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