mike king (11th August 2015)
you meant I write a keyPressEvent() in the base class? But if the KeyPressEvent written in the base class, can the event deliver to the widget from the control,because the event be filtered after the eventFilter,firstly delivered to the relate control,not to the widget.
Last edited by mike king; 11th August 2015 at 08:45.
Yes. You said that all your page widgets had the same base class.
You need an event filter if you need to keep events reaching their actual destinations or if the destination consumes them but you need them as well.
Maybe that is the case for you.
Cheers,
_
Bookmarks