And if you want to rule them all , you can subclass QEvent, and take advantage of Qt event system.