I am having a small problem with QTimer
. Whenever I use QTimer
it shows me this error
QTimer *timer = new QTimer();
error: invalid use of incomplete type 'struct QTimer'
So I tried this
QTimer timer();
Now I got rid of that error but when I use members inside the QTimer it shows me these errors. For example
timer.start(1000);
or
timer->start(1000);
error: request for member 'start' in 'timer', which is of non-class type 'QTimer*()'
I tried to include QTimer but it shows me that there is no such file or directory error.
I am using the Code::Blocks IDE.