Hi,<br><br>I am trying to have a QTableView of checkboxes, so I can use them for row selections... I have managed to do that, now I want the header Itself to be checkbox so I can check/Uncheck All. I have been looking for days, but couldn't get to do it.<br>
<br>I tried to use setHeaderData to the model, but couldn't do it.<br><br><-- snip --><br><br>        item = QtGui.QTableWidgetItem("Check");<br>        item.setFlags( QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled )<br>
        item.setCheckState(QtCore.Qt.Unchecked)<br>        model.setHeaderData(0, QtCore.Qt.Horizontal, item, QtCore.Qt.CheckStateRole)<br><br></-- snap --><br><br>I am using QSqlRelationalModel for the table. Any help is much appreciated.<br>