Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Set a function to affect to entire sistem
phin3 last edited by
I am a beginner at I want to create a function that does not just run on the form, but I want the function that I make run on the entire system, for example I have grabkeyboard function, I want this function runs on entire system, not just when in form.
sorry for my bad english
Thank you in advance.
mbnoimi last edited by
I think this issue related to C++ so it's better to post in "C++ Gurus forum":https://qt-project.org/forums/viewforum/36/ anyway you can call any function in C style by using extern keyword "this link":http://tldp.org/HOWTO/C++-dlopen/thesolution.html explains how to use it
Sorry, I do not understand the question. A function always runs as part of the application it belongs to. There is no way a normal user process can effect the entire system (if there is then you found a bug in the OS;-).
If you want to use all the systems CPU resources, then you will need to do multithreaded programming.
if you just want to keep the keyboard for your widget, then "grab it":http://qt-project.org/doc/qt-4.8/qwidget.html#grabKeyboard:-)
Guest last edited by
Maybe he speaks of something like this: