replaced partially working QLocalSocket implementation and replaced by broken QFile implementation
added pthread to QThread communication, now a pthread can use Qt signals and slots