Qt - How to associate data with QTableWidgetItem?

前端 未结 2 1270
抹茶落季
抹茶落季 2021-02-15 23:56

I want to associate additional data with each QTableWidgetItem inserted into the table, in order to use that data in future, when it is being clicked on a table item. But that d

2条回答
  •  执念已碎
    2021-02-16 00:33

    You could derive from QTableItem and provide your own data member, or you could use the QTableView with your own model.

提交回复
热议问题