while (query->next()) { for(int j=0; j<spisokkolonok.count(); j++) { item = new QStandardItem(); item->setText(query->value(j).toString()); item->setFont(font); modell->setItem(i, j, item); } i++; }
Qt::ItemFlags EditableSqlModel::flags( const QModelIndex &index) const{ Qt::ItemFlags flags = QSqlQueryModel::flags(index); flags |= Qt::ItemIsEditable; return flags;}