diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-10-13 21:32:36 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-10-14 18:29:00 +0000 |
commit | b0cd3bcec4317ed859ea13b3a2b33742c6ccecfe (patch) | |
tree | 761cee3d4407c29a086bb7780ba069768eecd513 /src | |
parent | eed5514eaf03c04f1b93d0899789841b8488d9a6 (diff) |
Use QScroller in the Dir View example
We have never had enough examples that show how easy it is to install
a QScroller. In this case, one line makes a QTreeView flickable.
Pick-to: 5.15
Task-number: QTBUG-86090
Change-Id: Idb8b4709617befb261f3b78d63ddbdaf5ad18d6b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/util/qscroller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/util/qscroller.cpp b/src/widgets/util/qscroller.cpp index b94d8f4b81..ec679293bc 100644 --- a/src/widgets/util/qscroller.cpp +++ b/src/widgets/util/qscroller.cpp @@ -260,8 +260,8 @@ private: The scroller uses the global QAbstractAnimation timer to generate its QScrollEvents. This can be changed with QScrollerProperties::FrameRate on a per-QScroller basis. - Several examples in the \c scroller examples directory show how QScroller, - QScrollEvent and the scroller gesture can be used. + The \l {Dir View Example} shows one way to use a QScroller with a QTreeView. + An example in the \c scroller examples directory also demonstrates QScroller. Even though this kinetic scroller has a large number of settings available via QScrollerProperties, we recommend that you leave them all at their default, platform optimized |