QTextTable QTextCursor 当前行?
QTextTable QTextCursor current row?
我有一个QTextTable
,我想在当前位置插入一行。
我怎么知道 QTextCursor
在哪一行?
在@musicamente 的帮助下
在当前位置的 QTextTable 中插入一行的解决方案是:
cursor.currentTable().insertRows(cursor.currentTable().cellAt(cursor).row()+1,1)
我有一个QTextTable
,我想在当前位置插入一行。
我怎么知道 QTextCursor
在哪一行?
在@musicamente 的帮助下 在当前位置的 QTextTable 中插入一行的解决方案是:
cursor.currentTable().insertRows(cursor.currentTable().cellAt(cursor).row()+1,1)