Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.1
-
None
-
windows10
Description
there is the image of the bug.
The code as bellow:
QTextEdit* textEdit = new QTextEdit(this);
QTextCursor cursor = textEdit->textCursor();
QTextTableFormat tableFormat; // 定义表格格式
tableFormat.setBorder(1); // 设置边框宽度为 1
tableFormat.setBorderStyle(QTextFrameFormat::BorderStyle_Dotted); // 设置边框样式为实线
tableFormat.setCellSpacing(10); // 单元格间距
tableFormat.setCellPadding(20); // 单元格内边距
int rows = 3;
int columns = 4;
// 插入一个 3 行 4 列的表格
QTextTable *table = cursor.insertTable(rows, columns, tableFormat);
// 填充表格内容
for (int row = 0; row < rows; ++row) {
for (int col = 0; col < columns; ++col)
}