Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QScrollbar vertical bar goes to the buttom?



  • 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. I use this:
      @if (tableView->verticalScrollBar()->value() == tableView->verticalScrollBar()->maximum()) {
      //something;
      }@
    2. "default size"
      @tableView->rowHeight();@

    PS: maybe you need scrollTo()?



  • thank you very much


Log in to reply