Your code is a mess on so many levels its hard to know where to start.
It should not even compile as in LoggerThread::run() this code is illegal:

Qt Code:
  1. void LoggerThread::run()
  2. {
  3. while(1)
  4. {
  5. ClientThread *thr = ClientThread(serverSocket.accept()); // you are assigning a stack copy initialization to a pointer. This should not compile, and if it did, it should crash.
  6. thr->start();
  7. }
  8. }
To copy to clipboard, switch view to plain text mode