[Qt-interest] QTableView - how to determine visible columns
Kaleb Pederson
kaleb.pederson at gmail.com
Thu Sep 3 23:49:34 CEST 2009
Can you get the width of the headers and then use use the width of the viewport to figure out which columns are visible?
--Kaleb
On Thursday 03 September 2009 12:47:38 pm David Boosalis wrote:
> I'd like to determine the left and right most columns of a QTableView
> that are visible (that is in view). I thought about getting them from
> the coordinates of viewport()->region(), but this always reported the
> same region no matter which columns were visible.
>
> Any suggestions appreciated
>
> David
> _______________________________________________
> 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