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. How do you get the number of visible rows in a single-column QListView?
Forum Updated to NodeBB v4.3 + New Features

How do you get the number of visible rows in a single-column QListView?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 489 Views 1 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.
  • G Offline
    G Offline
    GBWarren
    wrote on last edited by
    #1

    I am using a QListView that displays only a single column where the values are text-only and the item size is uniform. The list is in a layout and will change height whenever the user resizes the window. I need to keep to keep track of the number of visible rows (NOT items) the list has available at any given time. I suspect that the list keeps track of this value internally for the page up/page down QAbstractItemView capability, but I have not found a way this value can be retrieved.

    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