Important: Please read the Qt Code of Conduct -

Strange behavior on Column pinning QTableWidget

  • My selection mode is per row, one row at a time. When I click on any row within the pinned columns, the selection works correctly, however, when I click on any row and the column is outside the pinned ones (to the right), a strange behavior is displayed i.e. the 1st pinned column (column #0) gets hidden and the first non-pinned column (column #2) gets displayed twice, adjacent to each other.

    What could be the possible culprit? I have planted breakpoints in all the methods I override, it doesn't hit anything at all. Does it have anything to do with the two QTableViews sharing the same selection model? Should it be separate?

  • Qt Champions 2019

    Please provide some code, best a minimal, reproducible example.

Log in to reply