Set a function to affect to entire sistem
-
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. -
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:-)
-
Maybe he speaks of something like this:
http://qt-project.org/forums/viewthread/15308/