qt - Problems with using QTimer -


i having small problem qtimer. whenever use qtimer shows me error

qtimer *timer = new qtimer();  error: invalid use of incomplete type 'struct qtimer' 

so tried

qtimer timer(); 

now got rid of error when use members inside qtimer shows me these errors. example

timer.start(1000);  

or

timer->start(1000); 

error: request member 'start' in 'timer', of non-class type 'qtimer*()'

i tried include qtimer shows me there no such file or directory error.

i using code::blocks ide.

just add

#include <qtimer> 

to start of source file. , go first version:

qtimer *timer = new qtimer(); 

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -