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. Adding custom scrollbar with tableview
Forum Updated to NodeBB v4.3 + New Features

Adding custom scrollbar with tableview

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 381 Views
  • 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.
  • P Offline
    P Offline
    ParCHAT1497
    wrote on last edited by
    #1

    Hi Fellow developers, i am stuck at implementing A custom scrollbar with a table view. I need to fetch the position of the scrollbar but nothing works fine for me... could anyone help ?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      I need to fetch the position of the scrollbar

      You mean tableView->verticalScrollBar()->value()?

      Your question is very vague, we need something more to help you

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      P 1 Reply Last reply
      0
      • P Offline
        P Offline
        ParCHAT1497
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • VRoninV VRonin

          I need to fetch the position of the scrollbar

          You mean tableView->verticalScrollBar()->value()?

          Your question is very vague, we need something more to help you

          P Offline
          P Offline
          ParCHAT1497
          wrote on last edited by
          #4

          @VRonin
          ParCHAT1497 a day ago

          Yes actually I am implementing a logic like infinite scrolling.. so I needed to fetch the position of the scrollbar so that I can use it as per requirement. Like when the scroller reaches the bottom of the page I could fetch more data, and if it scrolls back up I could clear data based on screen/pagesize

          1 Reply Last reply
          0
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            Sounds a lot like what's described in the section "Lazy population of model data" of https://doc.qt.io/qt-5/model-view-programming.html

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            1

            • Login

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