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

make PointerHander.target a QObject; manipulate via metaproperties

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      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

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

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes