QTableView 和 QAbstractTableModel 或QStandardItemModel
1.自定义类继承QAbstractTableModel头文件如下:#ifndefTESTMOUDLE_H#defineTESTMOUDLE_H#include"StructTest.h"#includeclassTestMoudle:publicQAbstractTableModel{public:TestMoudle(QStringList&list,QObject*parent=nullptr