key0 key1 key2 key3 key4 ... keyNa0 val0 val1 val2 val3 val4 ... valna1 val10 val11 val21 val31 val41 ... valn1...an
key0 key1 key2 key3 key4 ... keyNa0 val0 val1 val2 val3 картинка ... valna1 val10 val11 val21 val31 картинка. ... valn1...an
QVariant SomeTableModel::data(const QModelIndex &index, int role) const{ if (!index.isValid()) return QVariant(); switch (role) { case Qt::DisplayRole: switch (index.column()) { case 0: return 4; break; case 1: return 423423.2342342; break; default: break; } break; default: break; } return QVariant();}