//表格颜色间隔显示
ui->originDataTable->setAlternatingRowColors(true);
//设置表格列数
ui->originDataTable->setColumnCount(3);
//设置表格头
QStringList headerList1;
headerList1 << QString::fromUtf8("平均距离值(mm)")
<< QString::fromUtf8("最大距离值(mm)")
<< QString::fromUtf8("最小距离值(mm)");
ui->originDataTable->setHorizontalHeaderLabels(headerList1);
//设置表头各项长度相同占满空间
ui->originDataTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
//不显示行数序号列
ui->originDataTable->verticalHeader()->setVisible(false);
//设置选中时选中一整行
ui->originDataTable->setSelectionBehavior(QAbstractItemView::SelectRows);
//不允许编辑内容
ui->originDataTable->setEditTriggers(QTableWidget::NoEditTriggers);