QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread QSocketNotifier: Invalid socket 14 and type 'Read', disabling... 问题2:将发送命令端口放在主线程中运行,将接收数据端口moveToThread到线程中去,可以使用,但是关闭时出现以下错误 QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread 程序异常结束。 问题3:使用线程后关闭程序时最后会出现一个程序异常结束