Hello,
i`ve been trying to solve the following problems for ages. I really hope someone can help me. Really grateful for all help!
I got the following errors (According errors?):
1. expected class-name before { token
2. expected ")" before "*" token.
in file included from ..\testMapp\main.cpp:6.0:
according to the compiler, the first error (1) comes from line 13 and the second error from line 16 in the following code: http://pastebin.com/UZj7K8rX
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)?
Ease too.
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.