QTableWidgetItem代理可以实现 自己不想重绘,简单一点就可以在单元格中插入QTextEdit,用QTextEdit来显示 QTextEdit *edit = new QTextEdit(); int currentRow = tableWidget->rowCount(); tableWidget->insertRow(currentRow); tableWidget->setCellWidget(currentRow, 0, edit );
16,235
社区成员
26,649
社区内容
加载中
试试用AI创作助手写篇文章吧