Results 1 to 2 of 2

Thread: Right ALT key not recognized

  1. #1
    Join Date
    Jan 2011
    Posts
    55
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Right ALT key not recognized

    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

  2. #2
    Join Date
    Jan 2011
    Posts
    55
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Right ALT key not recognized

    I forgot to tell that I checked the values returned by event->key(): the first time I press tha RIGHT ALT key, it returns the correct value (.....251); if I press it again, it returns ......249 (the CTRL key). How odd... and it's happening in Windows, OSX works just fine.

Similar Threads

  1. Qmake command not recognized
    By Rakula in forum Installation and Deployment
    Replies: 2
    Last Post: 15th September 2014, 13:10
  2. configure is not recognized
    By Cucus in forum Installation and Deployment
    Replies: 3
    Last Post: 27th August 2011, 05:46
  3. QGraphicItem is not recognized
    By stella1016 in forum Qt Programming
    Replies: 3
    Last Post: 1st July 2011, 16:33
  4. QFont Object not recognized.
    By eLancaster in forum Newbie
    Replies: 9
    Last Post: 8th February 2011, 14:37
  5. operator=new ClassObj() is not recognized
    By naturalpsychic in forum General Programming
    Replies: 2
    Last Post: 25th January 2011, 22:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.