#include <QMetaType> // 注册完成之后就可以发送自定义参数类型的信号了 qRegisterMetaType<BaseDevice::DeviceType>("BaseDevice::DeviceType");