I want to use signal and slot in my program and for this I am told Ineed to add Q_OBJECT as below.
Well I have a class:
class A
{
Q_OBJECT
public:
A();
};
This gives an error which says 'Q_OBJECT does not name a type'. If I than add #include It give the error 'undefined reference to vtable of A'
So what is the right way to do this?