[Qt-interest] QTableView-how to set a column viewable
David Boosalis
david.boosalis at gmail.com
Sat Aug 29 01:58:44 CEST 2009
Oops. In my table class in the method where I do this forgot
theQTablewView qualifier.
QTableView::scrollTo(index);
Thanks Frank
-David
On Fri, Aug 28, 2009 at Qt4:36 PM, Frank Hemer<frank at hemer.org> wrote:
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list