Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
src_widgets_util_qscroller.cpp
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5 QWidget *w = ...;
8
10 QWidget *w = ...;
\inmodule QtCore\reentrant
Definition qpoint.h:214
The QScroller class enables kinetic scrolling for any scrolling widget or graphics item.
Definition qscroller.h:26
static QScroller * scroller(QObject *target)
Returns the scroller for the given target.
static Qt::GestureType grabGesture(QObject *target, ScrollerGestureType gestureType=TouchGesture)
Registers a custom scroll gesture recognizer, grabs it for the target and returns the resulting gestu...
void scrollTo(const QPointF &pos)
Starts scrolling the widget so that point pos is at the top-left position in the viewport.
@ LeftMouseButtonGesture
Definition qscroller.h:45
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
GLfloat GLfloat GLfloat w
[0]
QScroller * scroller