QTableView: interactive column resize without QHeaderView

  • I have a QTableView with a hidden horizontal header


    No header view

    As you can see, the text in the central column is clipped because of the column width.

    To view the text, the user would need to resize the column, but without a header, I am unable to do this.

    What I would like to be able to do is hover my mouse over the edge of the column and have the normal resize icon appear, and then allow the user to drag the column wider.

    Is this possible?

  • Lifetime Qt Champion


    From the top of my head, you would need to implement the detection logic and movement handling from QHeaderView within QTableView.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.