PDA

View Full Version : Using tables in QTextEdit



lyucs
28th May 2009, 15:48
I'm using a QTextEdit as an Html Editor, and I want to give users the possibility of creating their own customized table in their .html files.

I've read a little bit QTableWidget and QTableView, but I couldn't get anything that could help me. Maybe I overlooked?

What Qt classes or methods should I look deeper?
Thank you.

elcuco
28th May 2009, 16:29
Look into QTextCursor

aamer4yu
29th May 2009, 05:35
Have a look at Text Edit example in Qt Demos under Demonstrations

lyucs
29th May 2009, 12:51
I've already seen that example, it shows a table, that's true, but you can't create your own.

well, anyways, I read the doc for QTextCursor, and I managed to create a table. Thankyou!

Now, I have to edit the table. If I need help, I'll count on you again ;)