Macok
5th March 2009, 22:25
I created my own class and | wanted to pass it as argument in SIGNALS/SLOTS.
But when I call emit signal(myClass); I get this error on output:
Object::connect: Cannot queue arguments of type 'myClass' (Make sure 'myClass' is registered using qRegisterMetaType()I solved the problem by passing pointer to myClass instead of myClass object, but what's wrong in the first method?
But when I call emit signal(myClass); I get this error on output:
Object::connect: Cannot queue arguments of type 'myClass' (Make sure 'myClass' is registered using qRegisterMetaType()I solved the problem by passing pointer to myClass instead of myClass object, but what's wrong in the first method?