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
= ...;
6
QScroller::grabGesture
(
w
,
QScroller::LeftMouseButtonGesture
);
8
10
QWidget
*
w
= ...;
11
QScroller
*
scroller
=
QScroller::scroller
(
w
);
12
scroller
->
scrollTo
(
QPointF
(100, 100));
QPointF
\inmodule QtCore\reentrant
Definition
qpoint.h:214
QScroller
The QScroller class enables kinetic scrolling for any scrolling widget or graphics item.
Definition
qscroller.h:26
QScroller::scroller
static QScroller * scroller(QObject *target)
Returns the scroller for the given target.
Definition
qscroller.cpp:255
QScroller::grabGesture
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...
Definition
qscroller.cpp:355
QScroller::scrollTo
void scrollTo(const QPointF &pos)
Starts scrolling the widget so that point pos is at the top-left position in the viewport.
Definition
qscroller.cpp:622
QScroller::LeftMouseButtonGesture
@ LeftMouseButtonGesture
Definition
qscroller.h:45
QWidget
The QWidget class is the base class of all user interface objects.
Definition
qwidget.h:99
w
GLfloat GLfloat GLfloat w
[0]
Definition
qopengles2ext.h:789
scroller
QScroller * scroller
Definition
src_widgets_util_qscroller.cpp:11
qtbase
src
widgets
doc
snippets
code
src_widgets_util_qscroller.cpp
Generated by
1.9.7