[quote author="nibbit" date="1353074432"]Yes. I know that subclassing QTHread is not recommended. But I was trying both method and there is no difference in the program activity.[/quote]Well, programming rules are not fixed. As long as you know what you're doing, it's ok to break them during appropriate times :)
[quote author="nibbit" date="1353074432"]Now all is working great and really I am not sure why. In this case I am using my own blocking method instead of socket blocking method. Now I can use my socket even in the way as I want :). [/quote]Hmm... it has become a hidden bug. Your code is still unsafe, and it can still crash if you deploy the program on a different computer, or if other parts of your code get updated. It would be wise to protect your program with mutexes, if you want to do it this way.