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 2011
    Posts
    3
    Thanks
    1
    Platforms
    Unix/X11

    Default Re: Key Press Event and Shift key problem

    I compiled an ran your code and it exhibits the same problem.

    I'm using Ubuntu 10.04.1 32bit, so perhaps it is a bug with the OS or the libraries in the Ubuntu repository.

  2. #2
    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

    I checked it in a Kubuntu 10.10 Virtual Machine with Qt 4.70. Works as it should.

    Joh

  3. The following user says thank you to JohannesMunk for this useful post:

    Teefs (26th February 2011)

  4. #3
    Join Date
    Feb 2011
    Posts
    3
    Thanks
    1
    Platforms
    Unix/X11

    Default Re: Key Press Event and Shift key problem

    I forgot to mention earlier that I am running it in a VM, and it looks that that is my issue after all. It looks like it is a bug with Parallels 5.0.

    Thanks for all your help.

    By the way, what VM software are you using that works properly?

  5. #4
    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

  6. #5
    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

  7. #6
    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.