I have the following keypress event routine (Qt 4.7):

Qt Code:
  1. void GLTerrain::keyPressEvent(QKeyEvent *event)
  2. {
  3. switch (event->key()) {
  4. case Qt::Key_Shift:
  5. bShift=true;
  6. break;
  7. case Qt::Key_Alt:
  8. bAlt=true;
  9. if (bEnableAllBoundingBoxFeature==true) bAllBoundingBox=true;
  10. break;
  11. }
To copy to clipboard, switch view to plain text mode 

On OSX everything works fine, on Windows (VC++ 2008, 64bit), the right ALT key event is not triggered (only the left ALT is).
Any idea? Thanks