Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.8, 5.15.0
-
None
-
-
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
- is required for
-
QTBUG-85926 Make it possible to use HoverHandler to filter events
- Reported
- relates to
-
QTBUG-64546 Instantiator: provide a way to set the QObject parent of the objects it creates
- Reported