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

Allow to reassign PointerHandler.parent

XMLWordPrintable

    • All
    • e58cb58b44a0381592cd0e6eb0da3d3d6f1c5ccc (qt/qtdeclarative/dev)

      When it comes to intercept the user inputs of external or dynamic created items, we need a way to reassign the PointerHandler with a new parent, e.g.

      // ...
          Dialog {
              id: dialog
          }
      
          TapHandler {
              parent: dialog.background
              onTapped: dialog.close()
          }
      // ...

      Of course we could make use of MouseArea and it does works well, but I don't understand why PointerHandler doesn't support such useful feature.

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes