Hi,
I'm trying to declare a slot called change() in my class myprocessor. so this is what i do:

#include <QObject>
class MyProcessor : public QObject
{
Q_OBJECT
public slots:
void change();
...and so on...

now, when i try to compile, this is what it throws back:
Qt Code:
  1. main.o(.gnu.linkonce.t._ZN11MyProcessorC1Ev+0x1c): In function `MyProcessor::MyProcessor[in-charge]()':
  2. /usr/local/Trolltech/Qt-4.1.0/include/QtCore/arch/qatomic.h:70: undefined reference to `vtable for MyProcessor'
  3. main.o(.gnu.linkonce.t._ZN11MyProcessorD1Ev+0xc): In function `MyProcessor::~MyProcessor [in-charge]()':
  4. /usr/local/Trolltech/Qt-4.1.0/include/QtGui/qimage.h:164: undefined reference to `vtable for MyProcessor'
  5. collect2: ld returned 1 exit status
  6. make: *** [videochoice] Error 1
To copy to clipboard, switch view to plain text mode 

if i don't include the Q_OBJECT, the it says:
Qt Code:
  1. Object::connect: No such slot QObject::change()
To copy to clipboard, switch view to plain text mode 

What do i do??
superutsav