qtableviewqtablewidgetqt4.7

Lock a column while scrolling with QTableWidget / QTableView?


Is it possible to hold the position of one column , while i'm scrolling horizontally in QTableWidget / QTableView ?

Thanks !


Solution

  • Take a look at following example:

    http://doc.qt.io/qt-5/qtwidgets-itemviews-frozencolumn-example.html