我有一个QTextTable,我想在我当前的位置插入一行。
如何知道QTextCursor在哪一行?
发布于 2021-01-16 03:23:34
使用help @musicamente,在当前位置的QTextTable中插入一行的解决方案是:
cursor.currentTable().insertRows(cursor.currentTable().cellAt(cursor).row()+1,1)
https://stackoverflow.com/questions/65741813
复制相似问题