PDA

View Full Version : multicolumn in QTextEdit



jiveaxe
6th August 2007, 16:02
Hi,
is it possible arrange text in a QTextEdit in columns, like in any word processor? I have set


textEdit->setLineWrapMode(QTextEdit::FixedColumnWidth);
textEdit->setLineWrapColumnOrWidth(150);

but it doesn't works, text is not wrapped in columns.

Thanks

marcel
6th August 2007, 16:07
I don't think it will work that way.
What about creating a two columns html template(maybe a two columns table, or two divs, or whatever works ), inserting text in the template, and inserting this html into the text edit with setHtml or insertHtml?

If you're going to use div's, then make sure you set their floating style to "left" and maybe set a fixed width for them
Anyway, I think using an html table is the way to go.

Regards

jiveaxe
6th August 2007, 16:12
It seems simple.. Ok marcel, I give it a try.

Thanks