PDA

View Full Version : QTableView without the first counter column?



pmaktieh.sirhc
4th January 2007, 18:40
Hi all,

I have a filled QTableView and I don't want the first (automatic shown) counter column! Is there a way to deactivate or hide this column?

This is the normally QTableView:

http://img463.imageshack.us/img463/4540/qtableviewhp1.png

I want this (manipulated with gimp):

http://img463.imageshack.us/img463/7896/qtableview2lj7.png

Is there any way to do this? I'm using Qt 4.2.2!

Thanks!
Chris

jpn
4th January 2007, 18:45
QTableView::verticalHeader()
QWidget::hide()


Example:

tableView->verticalHeader()->hide();

PS. You could also consider using a QTreeView with multiple columns.

pmaktieh.sirhc
4th January 2007, 22:03
Oh, it's so easy ... I'm blind! :D Thanks for the hint!