在qt信号号槽中传递非基本类型和qstring派生类时 需要用 RegisterMetaType<T>("T");进行注册 class T{ } qRegisterMetaType<T>("T"); 否则报错