Issue
I have a QTextTable
, I do some actions in the table and I want two things:
Return
QTextCursor
to cell (0,0)Or move
QTextCursor
to cell (row, columnn)
How can I do?
Solution
For the given table
object of type QTextTable
get desired cursor:
auto tableCell = table->cellAt(row, column);
auto cursor = tableCell.firstCursorPosition();
then setTextCursor within edited QTextEdit
object.
Answered By - retmas
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.