我在main函数里定义服务器端
  ServerTcp server;
    server.listen(QHostAddress::Any,w.tcpPort);
   能够接受到客户端的数据
 w是 MainWindow w;
  但是改到mainWindow的构造函数里
  ServerTcp server;
    server.listen(QHostAddress::Any,this->tcpPort);
   就接受不到
  换成指针也不行
  .h 文件 ServerTcp * server;
  mainWindow构造函数里
  server = new ServerTcp(this);
    server->listen(QHostAddress::Any,this->tcpPort);