Question

Is there a way to reduce the scroll speed on a QScrollArea? When I scroll by the mouse wheel, it jumps passed the content. So yeah is there a way to adjust it?

Était-ce utile?

La solution

You can set singleStep (in pixels) of area's scroll bars:

ui->scrollArea->verticalScrollBar()->setSingleStep(2);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top