我有一個QTextTable,我在表格中做了一些動作,我想要兩件事:
回傳
QTextCursor單元格 (0,0)或移動
QTextCursor到單元格(行、列)
我能怎么做?
uj5u.com熱心網友回復:
對于給定table型別的物件,QTextTable獲取所需的游標:
auto tableCell = table->cellAt(row, column);
auto cursor = tableCell.firstCursorPosition();
然后
這作業正常。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/414847.html
標籤:
下一篇:PyQt5日歷小部件子項
