Not a thread, a separate process.

QProcess is Qt's facility for running other programs, it can write to the other programs stdin and read its stdout and stderr.

Depending on the data to the library it might be possible to create a small helper program that is run by the main application as a child process.

Cheers,
_