qtableview设置表头:
model = new QStandardItemModel();
model->setColumnCount(5); model->setHeaderData(0,Qt::Horizontal,QString::fromLocal8Bit("EPC"));
model->setHeaderData(1,Qt::Horizontal,QString::fromLocal8Bit("PC"));
model->setHeaderData(2,Qt::Horizontal,QString::fromLocal8Bit