Qt - How to associate data with QTableWidgetItem?

前端 未结 2 672
南旧
南旧 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:50

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

提交回复
热议问题