void frmUslugi::on_treeWidget_itemChanged(QTreeWidgetItem *item, int column){ if (item->flags().operator &(Qt::ItemIsEditable)){ qDebug() << "123"; //item->setFlags(item->flags() ^ Qt::ItemIsEditable); }}
connect(tabl,SIGNAL(dataChanged(QModelIndex,QModelIndex)),this,SLOT(editFinish(QModelIndex)));
void frmUslugi::editFinish(QModelIndex index){ qDebug() << index.row(); qDebug() << index.column(); ui->tableUslugi->setCurrentIndex(index);}
ui->tableUslugi->setCurrentIndex(index);