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

make PointerHander.target a QObject; manipulate via metaproperties

    XMLWordPrintable

Details

    Description

      If we allow adding handlers to 3D Model objects, and we want e.g. DragHandler to "magically" work the way it does in Qt Quick (just declare it and you can drag the object around), then DragHandler needs to learn how to drag 3D objects even though it's not linked against Qt Quick 3D. This could be done abstractly: QQuickItem is not the only kind of object that has x and y properties, but those are the only properties that DragHandler needs to set. (Currently it calls setPosition() though.)

      WheelHandler sets metaproperties rather than calling setters directly. This was done to keep interceptors (like Behavior and BoundaryRule) working; and that is another reason that every handler that sets properties on items should do it via metaproperties. So I think there's a chance to solve two problems at once.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change