[Solved] QTableView - keep 1st column fixed size and non-scrollable
-
if you don't need column 0(row count), you can write column 1 in the vertical header (just like you do while changing column names), showing it in place of row numbers. (or you can subclass your model and override headerData() function to show 1st column instead of row numbers.
If you need both row numbers and first column, I think you have to subclass QTableView, but I can't help you in this task.
Paolo -
By default it is not possible (see "this":http://developer.qt.nokia.com/forums/viewthread/5358/ and "this":http://developer.qt.nokia.com/forums/viewthread/1978/ thread). I think there was an example on how to achieve a fixed column on the left by using two widgets in combination... But I don't recognize where...
-
This is the link http://doc.qt.nokia.com/latest/itemviews-frozencolumn.html
It worked in my application.Thanks