QScrollPrepareEvent Class

The QScrollPrepareEvent class is sent in preparation of scrolling. More...

Header: #include <QScrollPrepareEvent>
qmake: QT += gui
Since: Qt 4.8
Inherits: QEvent

This class was introduced in Qt 4.8.

Detailed Description

The scroll prepare event is sent before scrolling (usually by QScroller) is started. The object receiving this event should set viewportSize, maxContentPos and contentPos. It also should accept this event to indicate that scrolling should be started.

It is not guaranteed that a QScrollEvent will be sent after an acceepted QScrollPrepareEvent, e.g. in a case where the maximum content position is (0,0).

See also QScrollEvent and QScroller.