PDA

View Full Version : Events - how to



eleanor
12th November 2006, 22:40
Well I'm wondering how to write a program that only has a main window and a little cube in the middle of the window...And by pressing down, up, left, right keys on the keyboard you can move it from one side to the other (inside the main window of course). So can sb tell me where to find that kind of code or paste the code here, or give me just a tip .....

greetings

jacek
12th November 2006, 22:49
Reimplement QWidget::keyPressEvent() or use QAccel.

sunil.thaha
13th November 2006, 07:23
To add to the above list use you can use QShortcut also