Hello,
I'm very new to Qt.
I just installled Qt5.0.0 & MS Visual C++ Comilper 10.0 on my compuer (running Win7)
I tried to compile and run a few programs from the Qt Creator Examples. They work.
Then, I created a very simple project using "Empty Qt project" from Qt Creator.
The project was created at the default location "C:\Qt\Qt5.0.0\Tools\QtCreator\bin"
I just added one main.cpp source file with the following code:
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
button.show()
return app.exec
}
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton button("Run");
button.show()
return app.exec
}
To copy to clipboard, switch view to plain text mode
I tried to compile it. It didn't work and it gave me: C1083: Cannot open include file: 'QApplication'.
I looked up on the forum for similar issues and someone said: "Add the folder of the Qt include files to the paths that are used for finding headers."
I added it to the project file (.pro), so now it looks like this:
INCLUDEPATH = C:\Qt\Qt5.0.0\5.0.0\msvc2010\include
SOURCES += \
main.cpp
INCLUDEPATH = C:\Qt\Qt5.0.0\5.0.0\msvc2010\include
SOURCES += \
main.cpp
To copy to clipboard, switch view to plain text mode
but it still doesn't work...Any idea to help me with this very basic code? 
Thank you in advance!
Bookmarks