Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can I control the function keys of key through qt Application?
Mijaz last edited by aha_1980
I am designing a secured application.
In my application I have removed the title bar of login page, so user can not easily exit the application. But I have qt4.8.7 crosscompiled through qws so user can easily exit the application by pressing Ctrl+Alt+F7. Therefore, I want to control the keyboard funtionality through my application.
JonB last edited by JonB
You can recognise and act on key presses in a Qt application. But whether on your OS/window manager the key sequence is first handled outside of Qt/your application I cannot say.
In linux that will/might switch the active console. What does it mean on your system / context ?
Mijaz last edited by
I still have no clue what you mean / want :)
So its android app and you connect a keyboard via OTG ?
- . I just want control the funtionality of keybaord through my application.
Im not sure that is poosible for an APP. you have to be a driver.
Mijaz last edited by
After delpyment my project to board, if I try directly write value or text in the application on board then it will not work. But if I will go through the following step then can enter text or value directly from keyboard connected to the board through OTG.
cd / project_directory where you deployed your project.
Once user get into the application he/she can use the functionality of the application. I have disabled the "x"close mark of my application in order to trap the user into the application. User should not go out of the application without permission. I have created login for exit application to get close the application.
But the main issue I am facing now: user can easily go out from the application by Ctrl+Alt+F7 without any login permission.
How I can solve this issue? I thought, I should dissable the funtion keys after entered to the my application but not get any command to do that.
@Mijaz I'm quite sure you can't do this in Qt as Ctrl-Alt-Fx is handled by the OS.
You will need to do it on OS level: https://askubuntu.com/questions/357039/how-do-i-disable-virtual-consoles-tty1-6