QScroller. How to caontrol scrolling?
goldstar2154 last edited by
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?
Eligijus last edited by
I believe you are looking for scroll snapping.
You should investigate this method void QScroller::setSnapPositionsX(const QList<qreal> &positions)