You probably need to implement the EditRole role for headerData(). You are returning an empty QVariant for everything except DataRole, which is probably telling the header that the cell is not editable.
I don't see anything that corresponds to the flags() method that applies to the header, and QHeaderView does not seem to have anything either to indicate an editable state.




Reply With Quote

Bookmarks