qsimPg2 = new QStandardItemModel(0,14);qsimPg2->setHorizontalHeaderLabels (\*QStringList*\);QList<QStandardItem *> lsi;for (int j=0;j<13;j++)lsi<<(new QStandardItem(sl[j])); //sl - QList<T>qsimPg2->appendRow(lsi);ui.tvPg2->setModel(qsimPg2); //ui.tvPg2 - QTableViewui.tvPg2->setColumnHidden(0,true);
qsimPg2 = new QStandardItemModel(0,count);QStringList list;list.append("houses:");list.append("square:");list.append("name:");qsimPg2->setHorizontalHeaderLabels (list);QList<QStandardItem *> lsi;lsi.append(new QStandardItem(house->count()));lsi.append(new QStandardItem(house->s[0]));lsi.append(new QStandardItem(house->name[0]));qsimPg2->appendRow(lsi);tvPg2->setModel(qsimPg2);tvPg2->setColumnHidden(0,true);