PDA

View Full Version : Make first column freezed in QTableView



gutiory
25th November 2010, 07:58
Hello again.
I would like to freeze the first (or firsts) columns from a QTableView, in such a way that when you move the horizontal bar of the QTableView, the first column stay fixed.

Is it possible?.

Thanks again.

nish
25th November 2010, 08:23
i dont think there is a direct way, but u can always use a headerview with custom delegate to look like all the other cells, or may be put a custom widget in 0 spacing with the table view.

ChrisW67
20th December 2010, 06:53
Look at the Frozen Column example in the documentation. The approach can be extended to freeze more than one column.