So in your .h file you should have
QTimer * timer;
and in your constructor you should have
timer = new QTimer();
and at the top of your header file you should have:
#include <QTimer>
And you shouldn't have any of your own classes named QTimer
.
Hope that helps.