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

DragHandler doesn't respect acceptedButtons

    XMLWordPrintable

    Details

    • Commits:
      1982d1b1aa55ae44a1a775a5745e5c2f11001398 (qt/qtdeclarative/5.12)

      Description

      Setting acceptedButtons in the following example doesn't work. You can still drag by pressing the right mouse button.

          DragHandler {
              target: null
              enabled: mouseEnabled
              acceptedButtons: Qt.LeftButton
              onCentroidChanged: {
                  print(centroid.pressedButtons)
              }
          }

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                srutledg Shawn Rutledge
                Reporter:
                richard Richard Moe Gustavsen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes