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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -