Owned key observer
QObject event filter scoped to owned widget.
The retained catalogue records these interaction checks: Type in owned input: log updates without consuming keys; type elsewhere: log unchanged; remove filter on close.
This is an archived example. Review its imports and host assumptions before running it.
Source
Retained source SHA256: 0aa8c7ff06fb6df60726380356cb4282245e3d88188cfb86f65b8e576660ba34. The exact source and licence remain in the repository at owned-key-filter.py.txt. The source is not executed by this site.