I am trying to implement wheel event in Ogre Render window embedded in QWidget. I am modifying the example of QOgreWidget available at: http://github.com/gklingler/QOgreWidget.

It has a zoom function as:
Qt Code:
  1. void QOgreWidgetDemo::onZoomIn() {
  2. mCamera->moveRelative(Ogre::Vector3(0, 0, -10.0));
  3. }
To copy to clipboard, switch view to plain text mode 

I want to implement it using QWheelEvent. I have modified it to:
Qt Code:
  1. void QOgreWidgetDemo::onZoomIn(QWheelEvent *event) {
  2. qDebug() << "Wheel event";
  3. if(event->delta > 0){
  4. mCamera->moveRelative(Ogre::Vector3(0, 0, -10.0));
  5. }
  6. }
To copy to clipboard, switch view to plain text mode 

This is not working. How should I proceed to implement wheel event in the Render Window?
Thanks in advance.