Quote Originally Posted by tbscope View Post
Please don't use threads for this. It will make your coding more difficult (as you already see).

Do use the readyRead() signal.

Example:
http://www.qtcentre.org/wiki/index.p...ithout_threads
Thanks for your reply!

I saw, built and tested the example but it doesn't help me very much. Using the readyRead Signal was my first option but I need something that allows me to use the tcpsocket->write(qbytearray) and receive the processed QBA right after. We will have more then 100 functions and they all must use the same TCPclass.

I will keep looking but just for the record, is it possible to call a QThread with parameters and expect to return a qbytearray?

Thanks for your time!