rayeh
rayeh

Reputation: 29

QObject connect: Cannot queue arguments of type 'QItemSelection'

I got the following message around at time 23:59:59 pass to next day. I have no idea (since the codes were written by others) where it come from. Could anyone suggest how to find out the problem? Thanks!

QObject::connect: Cannot queue arguments of type 'QItemSelection'
(Make sure 'QItemSelection' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QItemSelection'
(Make sure 'QItemSelection' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QItemSelection'
(Make sure 'QItemSelection' is registered using qRegisterMetaType().)

Upvotes: 0

Views: 8479

Answers (1)

Constantin
Constantin

Reputation: 17768

Use the following outside of a namespace:

Q_DECLARE_METATYPE(namespace::QItemSelection)

Documentation

Upvotes: 5

Related Questions