Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
How to forbid arrows on keyboard in Qt project
cibule last edited by
I am doing a simple project a rotate cubic, and i have problem with arrows on keyboard and button.
I have two buttons, when i clicked first button the cubic rotate to right,the second button is used to rotate to left and i have too two arrows on the keyboard, up and down, and theirs function is the same as buttons,when i press up arrow the cubic rotate right and so one.Problem is when i start the application,the arrows instead of control the rotate, they select the buttons.
So i need to know where i can change the options or turn of control arrows to buttons
Projet is made by inheriten QMainWindow
Thank you for answers
tilsitt last edited by
I think you have a problem with keyboard focus. Try to use "grabKeyboard":http://qt-project.org/doc/qt-4.8/qwidget.html#grabKeyboard on the widget you want to receive keyboard events.