Congratulations to our 2022 Qt Champions!

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?


Log in to reply