[Qt-interest] how to restore a saved scoll position

Ulf-Alexander v. Ceumern-Lindenstjerna ceumern at vrmagic.com
Fri Feb 5 15:45:31 CET 2010


> v->horizontalScrollBar()->setSliderPosition(vvv);

Why, what is wrong with this?

Unless your model changes at some time and the position is invalid.

If this is the case you can try to ensure a certain item is visible.
Don't know any functions from the top of my head, but I guess that the
view has some way to achieve that...

Cheers, Ulf




More information about the Qt-interest-old mailing list