Hi,
i am not sure if Ogre influence or no
but i have the mouse press and mouse release event that work
that's it's code
mouseReleaseEvent(QMouseEvent* e):
Qt Code:
  1. void My_app::mouseReleaseEvent(QMouseEvent* e)
  2. {
  3. if(!e->buttons().testFlag(Qt::LeftButton))
  4. {
  5. oldPos = QPoint(invalidMousePoint);
  6. e->accept();
  7. }
  8. else
  9. {
  10. e->ignore();
  11. }
  12. emit mouseRelease(e);
  13. }
To copy to clipboard, switch view to plain text mode 
mousePressEvent(QMouseEvent* evt):
Qt Code:
  1. if(evt->button() == Qt::LeftButton)
  2. {
  3.  
  4.  
  5. Ogre::Real offsetX =(double)evt->pos().x()/(double)width();
  6. Ogre::Real offsetY=(double) evt->pos().y()/(double)height();
  7. move_object(double offsetX ,double offsetY)
  8. }
  9. emit mousePress(evt);
  10. }
To copy to clipboard, switch view to plain text mode 
it work mouse press event
but mouse move event
Qt Code:
  1. oid QOgreRenderWindow::mouseMoveEvent(QMouseEvent *e)
  2. {
  3.  
  4. if(e->buttons().testFlag(Qt::LeftButton))
  5. {
  6. Ogre::Real offsetX =(double)e->pos().x()/(double)width();
  7. Ogre::Real offsetY=(double) e->pos().y()/(double)height();
  8.  
  9. move_object(offsetX,offsetY);
  10. e->accept();
  11. }
  12. emit mouseMove(e);
  13. }
To copy to clipboard, switch view to plain text mode 
the mouse work just when i pree when i move nothing it work