1. 程式人生 > >QObject::connect: Cannot queue arguments of type 'QVector'

QObject::connect: Cannot queue arguments of type 'QVector'

不知道為啥
我就加了類似下面的程式碼

    item->setData(node.getSize(), Qt::DisplayRole);

報錯為

QObject::connect: Cannot queue arguments of type 'QVector<int>'
(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().)
QObject::connect: Cannot queue arguments of type 'QVector<int>'
(Make sure 'QVector<int>' is registered using qRegisterMetaType().)