I've found a satisfactory solution. I found out the horizontalScrollBar->maximum changes with each successive paint event. I can calculate what the maximum should be and then determine which is the last paint event.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.