PDA

View Full Version : Table in TextEdit



Splatify
8th March 2011, 16:39
Hi all I have a table view (model based) which I wish to display in my Textedit (Rich text).

Is there an easy way (or any way at all) to display the records of the table in a textedit? I'm stuck on this so may need some guidance.

Thanks for your time and trouble.

boudie
8th March 2011, 18:57
You can use setHtml to feed it some html like this:


myTextEdit.setHtml("<table><tr><td>text in column1</td><td>more text in column2</td></tr></table>");