Quote Originally Posted by wysota View Post
I don't see how using ensureVisible() is more "perfect" than setting the value of the scroll bar to 0 but have it your way....
Why should I set the value to zero? I have to keep visible the timeline ( in my case a moving line from left to right ) that disappear in the right size of the widget when I resize it ( while playing a sound )


"If division by 0 is a bad thing then why does division exist at all?"

In other words, I didn't say the routine is bad, I said it's bad in your case (actually it's not that bad in this situation but once you start adding more functionality it might become bad)
I think you didn't understand my scenario, sure for my bad english sorry.

Best Regards