1、参考博客:https://blog.csdn.net/u013360881/article/details/78878471 使用qRegisterMetaType,主要是使用跨线程的信号和槽的时候,需要考虑的是进行注册