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

Allow to reassign PointerHandler.parent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.8, 5.15.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All

      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

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes