1.设置列数 列宽
ui->tableWidget->setColumnCount(4); //设置列数
ui->tableWidget->setColumnWidth(0, 90); //0 设置列宽
ui->tableWidget->setColumnWidth(1, 190); //1 设置列宽
ui->tableWidget->setColumnWidth(2, 95); //2 设置列宽
ui->tableWidget->setColumnWidth(3, 95); //3 设置列宽
2.设置每一列的表头
QStringList sListHeader;
sListHeader << "预处理类型" << "窗口大小" << "类型" << "阀值";
ui->tableWidget->setHorizontalHeaderLabels(sListHeader);
//设置列内容自适应宽度
#if defined(SS_UBUNTU) //UBUNTU
ui->twShowData->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
ui->twShowData->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
#else //ARM
ui->twShowData->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
ui->twShowData->verticalHeader()->setRe