Results 1 to 3 of 3

Thread: How to distinguish left and right shift keys

  1. #1
    Join Date
    Jul 2007
    Posts
    90
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to distinguish left and right shift keys

    Hi,

    I am handling keyPressEvent() in my customized QWidget.

    I need to distinguish between LEFT SHIFT and RIGHT SHIFT keys in this handler.

    How to distinguish the keys.

    Thanks in advance.

    regards,
    ~Sanjay

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to distinguish left and right shift keys

    I don't think there is an easy way to do this.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Jul 2007
    Posts
    90
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to distinguish left and right shift keys

    Ok...

    Then i may have to go for some platform specific apis.

    Thanks,


    regards,
    ~Sanjay

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
  •  
Qt is a trademark of The Qt Company.