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

should be able to add a DragHandler to a Button or other control

    XMLWordPrintable

Details

    • f74db4579e (qt/qtdeclarative/dev) 1d1e590078 (qt/qtdeclarative/6.4) 1d1e590078 (qt/tqtc-qtdeclarative/6.4) f74db4579e (qt/tqtc-qtdeclarative/dev) 1d1e590078 (qt/qtdeclarative/6.4.1)

    Description

      This was working in 5.15 (draggableButton.qml an old expt on my system):

      import QtQuick 2.12
      import QtQuick.Controls 2.2
      
      ApplicationWindow {
          visible: true
          width: 200; height: 200
          CheckBox {
              id: draggableCB
              anchors.right: parent.right
              text: "draggable"
              checked: true
          }
      
          Button {
              text: "Drag me"
              onClicked: console.log("clicked")
              DragHandler { enabled: draggableCB.checked }
          }
      }
      

      It's important to be able to build visual designer applications, IMO.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change