Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.0 RC2, 6.2.0
-
None
-
4f3d56a2d2 (qt/qtdeclarative/6.3) b92ab2b48e (qt/qtdeclarative/dev) 4f3d56a2d2 (qt/tqtc-qtdeclarative/6.3) b92ab2b48e (qt/tqtc-qtdeclarative/dev)
Description
DragHandler has a property called snapMode which is usable in QML, but not listed in the online docs.
If you look at the following pages you will find no snapMode property listed
https://doc.qt.io/qt-5/qml-qtquick-draghandler.html
https://doc.qt.io/qt-6/qml-qtquick-draghandler.html
However, one can set the snapMode property in QML as follows (tested with Qt 5.15.5, Qt Quick 2.15)
DragHandler { snapMode: DragHandler.NoSnap }
For convenience, this is the file I was looking at when I discovered the snapMode property:
https://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/quick/handlers/qquickdraghandler_p.h