Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-101197

DragHandler.snapMode not listed in docs

    XMLWordPrintable

Details

    • 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

      Attachments

        For Gerrit Dashboard: QTBUG-101197
        # Subject Branch Project Status CR V

        Activity

          People

            srutledg Shawn Rutledge
            samgillam Sam Gillam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes