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.
You could probably reimplement the QWidget
event handlers:
QWidget::mousePressEvent()
QWidget::mouseReleaseEvent()
QWidget::mouseDoubleClickEvent()
QWidget::mouseMoveEvent()
and simply return from all of them.