feat: 调整主窗口微丝产线表格字体和行高,以提升可读性

This commit is contained in:
zhu-mengmeng 2025-07-21 08:37:05 +08:00
parent 5be57a052b
commit 1568d4c5ee
2 changed files with 8 additions and 4 deletions

Binary file not shown.

View File

@ -832,16 +832,20 @@ class MainWindowUI(QMainWindow):
self.process_table = QTableWidget(8, total_columns) # 8行1行标题区域 + 1行列标题 + 6行数据 self.process_table = QTableWidget(8, total_columns) # 8行1行标题区域 + 1行列标题 + 6行数据
# 为微丝产线表格设置更大的字体
process_font = QFont("微软雅黑", 16) # 比normal_font(12)大2个字号
self.process_table.setFont(process_font)
# 应用通用表格设置 # 应用通用表格设置
self.setup_table_common(self.process_table) self.setup_table_common(self.process_table)
# 设置行高 # 设置行高 - 适当增加以适应新字号
self.process_table.setRowHeight(0, 30) # 标题区域行高 self.process_table.setRowHeight(0, 40) # 标题区域行高从30增加到35
self.process_table.setRowHeight(1, 30) # 列标题行高 self.process_table.setRowHeight(1, 40) # 列标题行高从30增加到35
# 设置数据行的行高 # 设置数据行的行高
for row in range(2, 8): # 工序行 for row in range(2, 8): # 工序行
self.process_table.setRowHeight(row, 35) self.process_table.setRowHeight(row, 45) # 从35增加到40
# 设置列宽 # 设置列宽
self.set_process_table_column_widths() self.set_process_table_column_widths()