Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QListView scrolls too far on page down
Qt 6.11 is out! See what's new in the release blog

QListView scrolls too far on page down

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 507 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Chris HennesC Offline
    Chris HennesC Offline
    Chris Hennes
    wrote on last edited by
    #1

    I have a QListView whose item drawing is controlled by QStyledItemDelegate -- 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?

    Chris Hennes, Pioneer Library System

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you try to change the scroll mode to see if it works better for your use case ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Chris HennesC Offline
        Chris HennesC Offline
        Chris Hennes
        wrote on last edited by
        #3

        I hadn't tried that, but interestingly regardless of which I chose, simply calling that method resolved the issue.

        Chris Hennes, Pioneer Library System

        SGaistS 1 Reply Last reply
        0
        • Chris HennesC Chris Hennes has marked this topic as solved on
        • Chris HennesC Chris Hennes

          I hadn't tried that, but interestingly regardless of which I chose, simply calling that method resolved the issue.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Chris-Hennes that's unexpected... which version of Qt are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved