QVariantTableModel::headerData(intsection,Qt::Orientation orientation,introle)const{ if(role !=Qt::DisplayRole)// 返回一个默认数据的表头 returnQAbstractTableModel::headerData(section, orientation, role); // 仅仅只是返回水平方向的表头 if(orientation ==Qt::Orientation::Horizontal) { returnthis->m...