Home > other >  Modify the contents of a cell in the QTablewidget, need to click the other place, will trigger the i
Modify the contents of a cell in the QTablewidget, need to click the other place, will trigger the i

Time:11-28

Himself wrote a class to inherit QTablewidget, realizes the form changes, save the simple functions, such as found when modify the contents of a table, just click the other location, will trigger the itemchanged () or currentItemChanged () signals, this time just know data is modified, if you don't click the other location, QTablewidget thought form does not change, if closed form at this time, the data will not be saved, have a kind of method, the closed form can detect the change of the content of cells, which can leave at the time of closing a save action?

CodePudding user response:

With the delegate implementation, each table will know the data changes, check the use of the delegate,

CodePudding user response:

The building Lord at? With how to use the delegate, I also encountered this problem, please a code sample is
  • Related