View Full Version : QTableWidget: Disable 'snapping' to rows and columns?

8th October 2008, 18:39
Hi guys,

I have a table widget with a lot of data, so that scroll bars get displayed. When moving the scroll bars I notice that the QTableWidget always 'snaps' to the nearest row/column. That is, you can't use the scroll bars to position the table widget with half a row showing at the top, or half a column on the left.

Is there a way to change this behaviour? I have very wide columns and it makes the scrolling feel quite unnatural...



8th October 2008, 18:50
Check out QAbstractItemView::verticalScrollMode

8th October 2008, 21:04
Perfect :) That was exactly what I needed, thanks a lot.