Results 1 to 8 of 8

Thread: Key Press Event and Shift key problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Key Press Event and Shift key problem

    VirtualBox 4.0.

    You are welcome!

    Joh

  2. #2
    Join Date
    Mar 2011
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Key Press Event and Shift key problem

    Hi Guys,

    I'm new to QT and have been facing a similar problem with QT 3.3 on an MVL distribution with kernel 2.6.32.20.
    After a fresh system boot up, I don't get the correct keyState in the keyboard events (QKeyEvent) i.e even when I've pressed the Alt key the event->state() returns zero. But, after i quit my application and restart it, I start getting the expected output.

    Has anyone else faced a similar issue or can point me to the right place to look.

    Thanks,
    Rishi

  3. #3
    Join Date
    Jan 2006
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Key Press Event and Shift key problem

    To fix this problem when running a Parallels VM: Preferences > Keyboard > Disable 'Use Ctrl+Shift + click to right-click'

Similar Threads

  1. Paint event function in key press event
    By soumya in forum Qt Programming
    Replies: 6
    Last Post: 2nd February 2010, 12:40
  2. QGraphicsview and mouse press event
    By eva2002 in forum Qt Programming
    Replies: 6
    Last Post: 26th January 2010, 05:04
  3. Mouse press event in a QGraphicsScene
    By Lykurg in forum Qt Programming
    Replies: 3
    Last Post: 19th June 2009, 10:28
  4. Mouse press event detection
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2009, 13:08
  5. Key Press Event trouble
    By morraine in forum Newbie
    Replies: 6
    Last Post: 18th August 2008, 08:43

Tags for this Thread

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.