[Qt-interest] QTextCursor::insertBlock() at the beginning of a QTextEdit will prepend an empty line

Mohammed Sameer msameer at foolab.org
Mon Jul 11 14:47:22 CEST 2011


Sorry for the delay.

On Tue, Jul 05, 2011 at 06:58:20AM -0400, Atlant Schmidt wrote:
> Mahammed:
> 
> > Any better way ?
> 
>   Use Qt's ability to display HTML text?
> 
>   So without doing any fancy Qt-specific text formatting,
>   just set the QTextEdit to contain:
> 
>     <center>Centered Line</center>Non centered line
> 

I don't really feel like adding the overhead of HTML. The original data is in XML
so XML <-> text <-> HTML is not something I really want on embedded.

If I'm to choose between hacks then I'll go for mine :|

Cheers,

-- 
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F  280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org



More information about the Qt-interest-old mailing list