https://github.com/luebking/qarma/commit/b568dd14d6e1f661791c4d67245c614f1dc1986f The InputGuard class should handle everything. In case you need it for QGraphicsWidget's, you may have to adjust the test functions, but in general it should work there as well. Cheers, Thomas