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. QScrollbar vertical bar goes to the buttom?
Qt 6.11 is out! See what's new in the release blog

QScrollbar vertical bar goes to the buttom?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.5k 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.
  • P Offline
    P Offline
    pmjz
    wrote on last edited by
    #1

    Hi Guys,

    I have no ideas about those two questions. please help me out:

    1.how can I get to know whether a vertical bar in the QtableView already goes to the buttom?
    2. how can I know the default size or row numbers which are displayed in the QTableView?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RazrFalcon
      wrote on last edited by
      #2
      1. I use this:
        @if (tableView->verticalScrollBar()->value() == tableView->verticalScrollBar()->maximum()) {
        //something;
        }@
      2. "default size"
        @tableView->rowHeight();@

      PS: maybe you need scrollTo()?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pmjz
        wrote on last edited by
        #3

        thank you very much

        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