Qt程序中报错QObject::connect: Cannot queue arguments of type 'QVector<int>' (Make sure 'QVector<int>' is registered using qRegisterMetaType().
原因是因为在线程间QVector<int>没有注册。
在代码中加入
qRegisterMetaType<QVector<int>>("QVector<int>");
再次编译,即可。
Qt程序中报错QObject::connect: Cannot queue arguments of type 'QVector<int>' (Make sure 'QVector<int>' is registered using qRegisterMetaType().
原因是因为在线程间QVector<int>没有注册。
在代码中加入
qRegisterMetaType<QVector<int>>("QVector<int>");
再次编译,即可。