Issue
In PySide, I have set up a UI with a QScrollArea that has a QHBoxLayout, which contains custom QWidgets. After I populate the layout with my custom widgets, I want to programatically scroll to a specific widget so that it's in view, ideally at the top of the layout.
How how can a QScrollArea be set to scroll to the location of a specific widget in its layout?
Solution
This works: QScrollArea.ensureWidgetVisible(childWidget)
Answered By - Viktor Petrov
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.