I have written an application that uses a QGLWidget for stereo image display (Windows XP, QT 2010.01). I am trying to use the mouse to move a synthetic cursor around--in other words, I want to use mouse movements to move a cursor that I will draw in the GL scene. This will let me move a "floating dot" around in the stereo scene.

I have attempted to reimplement mouseMoveEvent--here's the .h file entry

Qt Code:
  1. protected:
  2.  
  3. void initializeGL();
  4. void paintGL();
  5. void mousePressEvent(QMouseEvent *event);
  6. void mouseMoveEvent(QMouseEvent *event);
To copy to clipboard, switch view to plain text mode 

Here is the mouseMoveEvent:

Qt Code:
  1. void ImageGLView::mouseMoveEvent(QMouseEvent *event)
  2. {
  3. if(FLOATING_DOT == mouseMode){
  4. // do something
  5. }
  6. else{
  7. QWidget::mouseMoveEvent(event);
  8. }
  9.  
  10.  
  11. }
To copy to clipboard, switch view to plain text mode 

the problem is that the reimplemented event function never gets called. I have placed breakpoints in it using the debugger (QT Creator) and it never seems to get the event. I have tried clicking to gain mouse context, etc, to no avail. To the best of my ability to tell, my mouseMoveEvent never gets called

I am baffled. The approach seems to work when using other types of widgets--is it the OpenGL nature of it that is causing the problem? I tried to follow the on-line examples, as well as various examples in Blanchette and Summerfield, and I suspect I'm doing something really stupid that I just can't see. The same affect seems to happen with mousePressEvent as well

Thanks in advance for any help