I want to enable a button when the user scrolls to the bottom of a Viewport
. So I thought I’d just add a listener to the ScrollBar
. However void scrollBarMoved (ScrollBar* scrollBarThatHasMoved, double newRangeStart) override;
never gets called because vbar.cancelPendingUpdate();
gets called in Viewport::updateVisibleArea()
Does the Viewport really need to cancel these updates? I know I can override visibleAreaChanged()
, but using a listener is a lot easier.
At least something should be added to the documentation so people don’t waste time tryin to figure out why they aren’t getting any scroll bar listener events.