Domanda

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?

È stato utile?

Soluzione

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

ui->scrollArea->verticalScrollBar()->setSingleStep(2);
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top