How to interact with checkbox actions ? (QTableView with QStandardItemModel)

前端 未结 3 1593
有刺的猬
有刺的猬 2021-01-06 18:50

I\'m using QTableView and QStandardItemModel to show some data.

For each row, there is a column which has a check Box, this check box is inserted by setItem, the co

3条回答
  •  太阳男子
    2021-01-06 19:47

    handle the click event, there you will get the modelindex, get the data and modify the same

    if you are going to insert more than one text or icon, then you need to set the delegate for your listview

提交回复
热议问题