Important: Please read the Qt Code of Conduct -

How to let QTableView draw column contains only CheckBox ?

  • Hi,

    I'd like to know is there anyway to only draw the checkbox in the cell of QTableView.

    I tried to return the role for the specific column QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsUserCheckable, but there is always a text editable widget stay beside the checkbox.

    alt text

    Is there anyway to get rid of that text edit widget ? Thanks very much !

Log in to reply