Search code examples
qtmousetouchpad

How to forbid Mouse in Qt 4.8.6?


Because I want to test TouchPad of laptop, then I should forbid the Mouse device. But I don't know how to forbid Mouse in Qt 4.8.6. Could you help me? Thank you.


Solution

  • You could probably reimplement the QWidget event handlers:

    and simply return from all of them.