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

Allow to reassign PointerHandler.parent

    XMLWordPrintable

Details

    • All
    • e58cb58b44a0381592cd0e6eb0da3d3d6f1c5ccc (qt/qtdeclarative/dev)

    Description

      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.

       

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes