Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. scroll bar
    Log in to post

    • UNSOLVED Why my scrollbars are not updating their total scroll size when content size changes?
      QML and Qt Quick • size zoom scroll scroll bar page • • jeanmilost  

      2
      0
      Votes
      2
      Posts
      68
      Views

      @jeanmilost Your logic seems to be correct. What you have to do is to move the re-calculation of Scrollbar size & position to the Rectangle rcPageContainer because you are applying scale for that. Rectangle { id: rcPageContainer objectName: "rcPageContainer" ... /// called when page viewport width changed onWidthChanged: { sbHorz.size = rcPageViewport.width / rcPageContainer.width sbHorz.position = Math.min(Math.max(sbHorz.position, 0.0), 1.0 - (sbHorz.size)); } /// called when page viewport height changed onHeightChanged: { sbVert.size = rcPageViewport.height / rcPageContainer.height sbVert.position = Math.min(Math.max(sbVert.position, 0.0), 1.0 - (sbVert.size)); } }
    • SOLVED ListView Header flickers during scrolling
      QML and Qt Quick • qml listview scroll bar • • alexmarian1990  

      1
      0
      Votes
      1
      Posts
      225
      Views

      No one has replied

    • SOLVED Why my scrollbar track color is transparent?
      General and Desktop • stylesheet pyside2 pyqt5 pyqt scroll bar • • Ishaq Khan  

      11
      0
      Votes
      11
      Posts
      2952
      Views

      @mrjj Thank you very much! Problem solved.
    • SOLVED How to add scroll bar action
      General and Desktop • qt 5.7 scrolling qt5.8.0 scroll bar • • Kinesis  

      12
      0
      Votes
      12
      Posts
      3019
      Views

      Did you try to determine why they don't appear ?
    • UNSOLVED ChartView and scrollbar
      QML and Qt Quick • qml chart scroll bar • • SeeLook  

      5
      0
      Votes
      5
      Posts
      2773
      Views

      Yes, in another project. QGraphicsView lays a top of QAbstaractScrollArea, so scroll bars appears there out of a box. But it requires a few lines of code to add scrolling by drag a scene. This time I needed QML way.
    • UNSOLVED Window scroll issue for continuous data
      General and Desktop • qt 5.4.1 scroll bar mdiarea • • Narthan  

      5
      0
      Votes
      5
      Posts
      1523
      Views

      @Chris-Kawa Hi.. Ok, we have one model , we are continuously appending data, on that time scroll will be always at bottom, even if we scroll to top , it will come back to bottom, until wee stop appending. void CustomeTableView::createTabel(QString thText) { if(modelList.count()<=25000) { modelList.append(thText); numRows = modelList.count(); for (int row = 0; row < numRows; row++) { for (int column = 0; column < numColumns; column++) { QStandardItem *item = new QStandardItem(modelList[row]); fsModel->setItem(row, column, item); } } } }
    • SOLVED HOW TO CONNECT SCROLL BAR TO WIDGET
      General and Desktop • qt5.4 scroll bar widget resize technology m4rzb4ni • • M4RZB4Ni  

      8
      0
      Votes
      8
      Posts
      5152
      Views

      @M4RZB4Ni Hi its all in here http://doc.qt.io/qt-5/qscrollbar.html#details But connecting to a random widget will do nothing. IF u have this case, user click on Tab In tab there are many widget so he need to scroll to see last of them, then u just use a scroll area and put all stuff inside. then it will just work. ScrollArea have scrollbars. U can control if both horz and vert or just horz.