blob: 03e2a710a442b3a542dc98d3449c10222bf27478 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
//! [0]
QWidget *w = ...;
QScroller::grabGesture(w, QScroller::LeftMouseButtonGesture);
//! [0]
//! [1]
QWidget *w = ...;
QScroller *scroller = QScroller::scroller(w);
scroller->scrollTo(QPointF(100, 100));
//! [1]
|