Clearly, it's not understanding the meaning of QMainWindow.
This probably means one of the following:
- You've failed to include the header file that contains the definition of QMainWindow
- QMainWindow is defined within a namespace, so you need to add a namespace qualifier
- You've misspelled the name of the class
Thanks for the fast reply. I cant see any of the problems that MikeyBoy is mentioning. However: in graph.cpp i get the following error in QT : Could not decode "graph.cpp" with "UTF-8" encoding. May this cause the problem(s)?
In function you declare void QCPAxis::setNumberFormat(const QString &formatCode)
so it means that variable formatCode is constant and can not be modified. But this line formatCode.at(0).toAscii(); tries to modify it. You need to copy data from formatCode.at(0) to mNumberFormatChar and use mNumberFormatChar.toAscii()
At last I think so ;)
QString have member named "toAscii", but const QString do not have member named "toAscii"
Ok, i am sick of this code and i give up. If anybody care to fix the program and send me release version for some money, shout out.
The program worked well in QT v: 2.4.1 in 2.6.2 i got all the errors.