Why do you want to deactivate scrolling?
Because right now it is possible to scroll outside of the area wich contains the content (im override paintEvent to paint my own content). So i just want to stop the scrollbar in the scrollArea to change its value.
If it possible to scroll outside the area with the content, it is because you made it so. Did you subclass QAbstractScrollArea or QScrollArea?
I subclassed QScrollArea.
Bookmarks