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

How to scroll QScrollArea by number of viewport pixels?



  • As the title says, I am trying to figure out how to scroll a QScrollArea by a number of viewport pixels. The scroll bar units are set to the number of pixels on the scrollbar itself.

    This math is right in my cognitive blindspot. Does anyone have a code snippet?

    Thanks!


Log in to reply