[Qt-interest] QTableView-how to set a column viewable

Frank Hemer frank at hemer.org
Sat Aug 29 01:36:42 CEST 2009


On Saturday 29 August 2009 01:30:21 David Boosalis wrote:
> If I have say 100 columns in a QTableView, how can I programatically
> set a column to be in the view.
>
> I found :
>  QAbstractItemView::scrollTo ( const QModelIndex & index, ScrollHint
> hint = EnsureVisible )
>
> But QTableView does not make this method available.

It sure does, QTableView inherits from QAbstractItemView - just call it.

Frank



More information about the Qt-interest-old mailing list