I'm providing a QObject to a script engine, which has one public slot for javascript to access. When I access this method the arguments come out all corrupted.

For instance:
Qt Code:
  1. value: 0.000000, dev: 5, key: A��, delay: 500
To copy to clipboard, switch view to plain text mode 

Should be:
Qt Code:
  1. value: 0.000000, dev: sd., key: read_sector, delay: 500
To copy to clipboard, switch view to plain text mode 

That's value=return_value, dev=arg1, key=arg2, delay=arg3

What might cause this?