该类是显示表格数据的,像Excel一样,
参考:https://blog.csdn.net/qq769651718/article/details/79357938
QTableWidget控件参考:
https://blog.csdn.net/alan00000/article/details/7951428
//QTableWidget的常用方法
tableWidget_ = new QTableWidget();
tableWidget_->setObjectName("bottomWidget_tableInfo_tablewidget");
tableWidget_->setShowGrid(false);//显示网格线
tableWidget_->setEditTriggers(QTableWidget::NoEditTriggers);//不能编辑
tableWidget_->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);//滚动条
tableWidget_->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
tableWidget_->verticalHeader()->setVisible(false);// 列表头
tableWidget_->horizontalHeader()->setVisible(false);
tableWidget_->setRowCount(1);//行数
tableWidget_->setColumnCount(6);
tableWidget_->setRowHeight(0,40); //行高度
tableWidget_->setSelectionMode(QAbstractItemView::NoSelection);
o_tableWidget_->setEnabled(false); //< 不响应鼠标,只是显示