Home > Back-end >  QTableView how to respond to the cell to edit news, associated data updated in real time?
QTableView how to respond to the cell to edit news, associated data updated in real time?

Time:11-26

Have a reference sample? I don't know how to write

CodePudding user response:

Response cellChanged

CodePudding user response:

QTableView and QStandardItemModel are used at the same time, in QStandardItemModel:

Void itemChanged (QStandardItem * item)

News link code:
The connect (mTableView - & gt; Model (), SIGNAL (itemChanged (QStandardItem *)), and this, SLOT (MyMethod (int x) ()));
  • Related