PDA

View Full Version : How text can retrieve fromQTextTable



rajeshclt3
19th November 2010, 07:03
Hi ,

In QTextTable when we press return key,the text goes next line as we expect.But when we try to get that text from QTextTableCell using the code

table.cellAt(0, 1).firstCursorPosition().block().text();

It gives only the first line.The text after return key(next line) is not returned.

Anybody give some suggestion to get the full text in a QTextTable even when we press return key in a cell.

Thanks

tbscope
19th November 2010, 07:13
What is a block?
Answer that and you know how to get the whole text.

rajeshclt3
19th November 2010, 11:04
Hi,
I solved by itrating each block in a QText Table cell.

Thanks