If executing a script needs a long time,so I want emit a signal to the application after it finish. I am I need

some suggestions to realize it.

the ways provided by qt doc is likes this:

Qt Code:
  1. To emit a signal from script code, you simply invoke the signal function, passing the relevant arguments:
  2. myQObject.somethingChanged("hello");
To copy to clipboard, switch view to plain text mode 

it need some object,but I just want emit a signal.