Util: migrate to proper but private Qt API for event filtering.