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

前端 未结 3 1487
有刺的猬
有刺的猬 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:36

    Here is another similar idea of the example suggested by mosg using a QStyleItemDelegate instead. http://developer.qt.nokia.com/faq/answer/how_can_i_align_the_checkboxes_in_a_view

提交回复
热议问题