Makes what scripts print available to the rest of VivoQuant.
Scripts print with QJSEngine's own console: console.log(), console.debug(), console.info(), console.warn(), console.error(), console.exception() and print() write each call to the Qt log in the js category. The application's message handler (Logging) passes those messages to handleMessage(), which emits them as output() from every ScriptConsole on the thread that printed them. The text is exactly what the log gets: QJSEngine formats it (arrays in brackets, objects as "[object Object]").
Not included: console.time(), console.count() and console.assert(), which Qt logs in the default category like any application message, and VQ.debug(), which goes to the log and the status bar.
Anything that wants to show script output connects to output(), for example the Workflow Assistant while it runs a snippet, or the VivoScript Console. Scripts never nest (see VQ.isRunning()), so a listener that connects for the length of one run sees that run's output, including output printed while the script waits. (It also sees output from script code that runs during the wait for other reasons, such as a timer an earlier script started.)
Nothing is installed in the script engine, so scripts can't break or bypass this, and the log is the same with and without listeners.