|qmake:||QT += gui|
|QScrollPrepareEvent(const QPointF &startPos)|
|void||setContentPos(const QPointF &pos)|
|void||setContentPosRange(const QRectF &rect)|
|void||setViewportSize(const QSizeF &size)|
The QScrollPrepareEvent class is sent in preparation of scrolling.
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.
Creates new QScrollPrepareEvent The startPos is the position of a touch or mouse event that started the scrolling.
Returns the current position of the content as set by setContentPos.
See also setContentPos().
Returns the range of coordinates for the content as set by setContentPosRange().
See also setContentPosRange().
Sets the current content position to pos.
See also contentPos().
Sets the range of content coordinates to rect.
See also contentPosRange().
Sets the size of the area that is to be scrolled to size.
See also viewportSize().
Returns the position of the touch or mouse event that started the scrolling.
Returns size of the area that is to be scrolled as set by setViewportSize
See also setViewportSize().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: