Quote Originally Posted by ruben.rodrigues View Post
Qt Code:
  1. private:
  2. QTcpServer *tcpServer;
  3. class_tcpServer *ServerThread;
To copy to clipboard, switch view to plain text mode 
You might want to delete at least these when destructing. Do some checks first before deleting though!

How do I delete the object? or can someone tell me other solution?
Sure:
Qt Code:
  1. delete objectName;
To copy to clipboard, switch view to plain text mode