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.
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.
I checked it in a Kubuntu 10.10 Virtual Machine with Qt 4.70. Works as it should.
Joh
Teefs (26th February 2011)
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?
VirtualBox 4.0.
You are welcome!
Joh
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
To fix this problem when running a Parallels VM: Preferences > Keyboard > Disable 'Use Ctrl+Shift + click to right-click'
Bookmarks