QScroller. How to caontrol scrolling?
I have QScrollArea, with QWidget as background widget and some QPushButtons childed from QWidget.
Looks like this:
For all area i have setup scroller via
So main question is: how to make scroll smoothly stop with my buttons in center?
I believe you are looking for scroll snapping.
You should investigate this method void QScroller::setSnapPositionsX(const QList<qreal> &positions)