Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Set a function to affect to entire sistem

Set a function to affect to entire sistem

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    phin3
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbnoimi
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        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:-)

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          Maybe he speaks of something like this:
          http://qt-project.org/forums/viewthread/15308/

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved