A checkbox only column in QTableView

前端 未结 2 965
天命终不由人
天命终不由人 2021-01-14 03:34

I have a table in Sqlite database which I display using QTableview and QSqlQueryModel. The first column needs to have a header which is a checkbox and all the items in the c

2条回答
  •  無奈伤痛
    2021-01-14 04:14

    The easiest way for displaying checkable items is using QStandardItemModel as QStandardItem can be set checkable. It is good for prototyping. The drawback however is, you had to fill the model manually.

提交回复
热议问题