QListView scrolls too far on page down
-
I have a
QListViewwhose item drawing is controlled byQStyledItemDelegate-- it's a reasonably complex multi-line-of-text and an icon region for each list item (not all the same height). When pressing "Page Down", I get scrolled one item too far -- that is, an item that is just off-screen below the visible list will get scrolled to just off-screen above the visible list, effectively hiding those items when using PageDown (or clicking in the scroll bar). Any ideas for where I should be looking for a fix or a workaround? -
Hi,
Did you try to change the scroll mode to see if it works better for your use case ?
-
I hadn't tried that, but interestingly regardless of which I chose, simply calling that method resolved the issue.
-
C Chris Hennes has marked this topic as solved on
-
I hadn't tried that, but interestingly regardless of which I chose, simply calling that method resolved the issue.
@Chris-Hennes that's unexpected... which version of Qt are you using ?