如下截图所示,增加三行代码即可: #include<QMetaType>Q_DECLARE_METATYPE(QVector<int>); qRegisterMetaType<QVector<int>>("QVector<int>&"); __EOF__ 本文作者:梦醒江南看微雨 本文链接:https://www.cnblogs.com/144823836yj/p/16320659.html
(Make sure 'QVector<int>' is registered using qRegisterMetaType().) QObject::connect: Cannot queue arguments of type 'QVector<int>' (Make sure 'QVector<int>' is registered using qRegisterMetaType().)` Thanks guys.