Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase mouse wheel step in QML ScrollView

Tags:

qt

qml

I have a GridView in a ScrollView.

The default scrolling speed/stepping for the mouse wheel is just a few pixels and I would like to increase it. What is the better way for doing this?

I am using Qt5.3.

like image 839
louissmr Avatar asked Oct 01 '22 12:10

louissmr


1 Answers

You can use the __wheelAreaScrollSpeed property of a ScrollView to set its scroll speed.

ScrollView {
    __wheelAreaScrollSpeed: 50
    Item {} //The content you wish to scroll
}
like image 100
Sean Goodwin Avatar answered Oct 03 '22 01:10

Sean Goodwin