Here's my code:
double Interval = 0;
int arrValues[256] = {0};
*timer
= new QTimer(&messager
);
connect(timer, SIGNAL(timeout()), &messager, SLOT(GetIt(arrValues)));
Interval = 1.0 / (double)ui.cbInterval->currentText.toInt() * 1000 ;
timer->start((int)Interval);
double Interval = 0;
int arrValues[256] = {0};
*timer = new QTimer(&messager);
connect(timer, SIGNAL(timeout()), &messager, SLOT(GetIt(arrValues)));
Interval = 1.0 / (double)ui.cbInterval->currentText.toInt() * 1000 ;
timer->start((int)Interval);
To copy to clipboard, switch view to plain text mode
I keep getting to following error everytime I complie.
decksimulator.cpp:738: error: no match for 'operator=' in '*timer = (((QTimer*)operator new(24u)), (<anonymous>->QTimer::QTimer(((QObject*)(((Messager*)((DeckSimulator*)this)) + 652u))), <anonymous>))'
/usr
/local
/Trolltech
/Qt
-4.1.1
/include
/QtCore
/qtimer.
h:75: note
: candidates are
: QTimer
& QTimer::operator=(const QTimer
&) decksimulator.cpp:741: error: insufficient contextual information to determine type
decksimulator.cpp:738: error: no match for 'operator=' in '*timer = (((QTimer*)operator new(24u)), (<anonymous>->QTimer::QTimer(((QObject*)(((Messager*)((DeckSimulator*)this)) + 652u))), <anonymous>))'
/usr/local/Trolltech/Qt-4.1.1/include/QtCore/qtimer.h:75: note: candidates are: QTimer& QTimer::operator=(const QTimer&)
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
Bookmarks