Fix mouse input with latest Qt 4.8