我遇到一个小问题QTimer
。每当我使用QTimer
它表明我这个错误使用QTimer的问题
QTimer *timer = new QTimer();
error: invalid use of incomplete type 'struct QTimer'
所以,我想这个
QTimer timer();
现在我摆脱了这个错误,但是当我使用成员QTimer里面表明了我这些错误。例如
timer.start(1000);
或
timer->start(1000);
error: request for member 'start' in 'timer', which is of non-class type 'QTimer*()'
我想包括QTimer但它表明我没有这样的文件或目录错误。
我正在使用Code :: Blocks IDE。
工作!谢谢! – normalUser 2014-12-13 15:13:39