From ce056f5308727dad774feb3d6274ccd392c48c81 Mon Sep 17 00:00:00 2001 From: 0x504B0304 <1807374010@qq.com> Date: Sun, 13 Feb 2022 10:07:54 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=88=97=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index ac0cccf..aed0b82 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -383,6 +383,7 @@ void MainWindow::redrawTable() } int lastRow=varList.size(); tableModel->setItem(lastRow,0,new QStandardItem(""));//末尾添加空行,用于用户添加变量 + ui->tb_var->resizeColumnsToContents();//根据表格内容自动调整列宽 } //保存配置到指定路径的文件