其他分享
首页 > 其他分享> > 【Qt】QObject::connect: Cannot queue arguments of type 'QVector<int>' Make sure '

【Qt】QObject::connect: Cannot queue arguments of type 'QVector<int>' Make sure '

作者:互联网

如下截图所示,增加三行代码即可:

#include<QMetaType>

Q_DECLARE_METATYPE(QVector<int>);


qRegisterMetaType<QVector<int>>("QVector<int>&");

 

 

标签:sure,METATYPE,Make,QVector,QObject,qRegisterMetaType,Cannot
来源: https://www.cnblogs.com/144823836yj/p/16320659.html