Here's my code:

Qt Code:
  1. double Interval = 0;
  2. int arrValues[256] = {0};
  3.  
  4. *timer = new QTimer(&messager);
  5. connect(timer, SIGNAL(timeout()), &messager, SLOT(GetIt(arrValues)));
  6.  
  7. Interval = 1.0 / (double)ui.cbInterval->currentText.toInt() * 1000 ;
  8. timer->start((int)Interval);
To copy to clipboard, switch view to plain text mode 

I keep getting to following error everytime I complie.

Qt Code:
  1. decksimulator.cpp:738: error: no match for 'operator=' in '*timer = (((QTimer*)operator new(24u)), (<anonymous>->QTimer::QTimer(((QObject*)(((Messager*)((DeckSimulator*)this)) + 652u))), <anonymous>))'
  2. /usr/local/Trolltech/Qt-4.1.1/include/QtCore/qtimer.h:75: note: candidates are: QTimer& QTimer::operator=(const QTimer&)
  3. decksimulator.cpp:741: error: insufficient contextual information to determine type
To copy to clipboard, switch view to plain text mode 

Is there something I need to cast? Do I need to inherit something into my messager class.

HELP PLEASE!

Rob