Add this prompt when the new object in the thread:
Cannot create children for a parent that is in a different thread.
Just remove this
void SocketThread::run()
{
qDebug() << "线程1:" << QThread::currentThread();
QTcpSocket *m_socket = new QTcpSocket(this);//错误
}