How can I slow down the scroller speed if the scroll area is small
-
Hi all
I try makeing a scroller for my combo box.
e.g.// based QComboBox setStyleSheet("QComboBox{combobox-popup:0;}" QScroller::grabGesture(view(), QScroller::LeftMouseButtonGesture); setMaxVisibleItems(5); //add many items for(int n = 0; n < 100; n++) { addItem(...) }I find it will scroll very fast even if I just move a few pixels, and it seems to scroll with each item ( not each pixels).
I findQScrollerProperties, how to use it or should say which param should I change?Best regards
Mihan -
https://doc.qt.io/qt-5/qscrollerproperties.html#FrameRates-enum
Default one is 60. Try to set it to 20 and see if it helps. -
M Mihan has marked this topic as solved on