PDA

View Full Version : Line spacing in QTextEdit/QTextBrowser



Valheru
11th December 2007, 12:18
I'm rendering CP437 encoded text in a QTextBrowser (http://doc.trolltech.com/latest/qtextbrowser.html), which is the encoding used for ASCII art in .nfo files. However, the standard line spacing is screwing things up. I need to set the line spacing to 0 to get the pictures to display properly, but I can't find out how to do that in the documentation. Does anyone know how to do this?

Thanks in advance.

high_flyer
11th December 2007, 13:54
Try and see where QTextLayout leades you.

Valheru
11th December 2007, 21:56
Not applicable unfortunately, this is a Qt3 project.

I worked around it by using a KHTMLPart (since it's a KDE3 application) and then doing the layout in CSS.

high_flyer
12th December 2007, 09:05
this is a Qt3 project.
oh sorry, didn't see that.

vinnitu
4th August 2010, 10:08
so... do you solve you problem? i am interesting how

Doru
10th November 2010, 13:47
Hi,
Still no suggestion?