1. Prepare the installed software
1. Eclipse IDE for C/C ++ developers: http://www.eclipse.org/downloads/
2. qt sdk for Open Source C ++ development on Windows: http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2010.04.exe
3. QT eclipse integration for C ++: http://qt.nokia.com/developer/eclipse-integration
4. mingw: This is already included in the qtsdk. When mingw is installed separately, an error occurs during compilation. Therefore, it is best to use the built-in qtsdk.
Ii. Installation
1. Eclipse: directly decompress the package.
2. Install the qt sdk. The installation path is D: \ CPP.
3. QT eclipse integration. You must select the eclipse and mingw \ bin directories during the installation process.
My directory is: Eclipse: D: \ CPP \ eclipse
Mingw \ bin: D: \ CPP \ QT \ 2010.04 \ mingw \ bin
3. Configuration
1. Environment Variable Configuration:
Modify:
Path =; D: \ CPP \ QT \ 2010.04 \ mingw \ bin; D: \ CPP \ QT \ 2010.04 \ mingw \ libexec \ GCC \ mingw32 \ 4.4.0
New:
Mingw_path = D: \ CPP \ QT \ 2010.04 \ mingw
C_include_path = % mingw_path % \ include; % mingw_path % \ Lib \ GCC \ mingw32 \ 4.4.0 \ include
Cplus_include_path = % mingw_path % \ include \ c ++ \ 4.4.0; % mingw_path % \ include \ c ++ \ 4.4.0 \ mingw32; % mingw_path % \ include \ c ++ \ 4.4.0 \ backward; % c_include_path %
LIBRARY_PATH = % mingw_path % \ Lib; % mingw_path % \ Lib \ GCC \ mingw32 \ 4.4.0
2.EclipseConfiguringQT.
Run for the first time, D: \ CPP \ Nokia \ eclipse \ Start. bat, open eclipse, and clickWindowÀPreferenceÀInstall/update-> QT
Click Add to add
Version: qt201004 (you can name it as needed)
Bin path: D: \ CPP \ QT \ 2010.04 \ QT \ bin
Include path: D: \ CPP \ QT \ 2010.04 \ QT \ include
After configuration, you can directly open eclipse.
Installation has been completed here!
Qt learning materials website collection: http://www.qteverywhere.com/learnqt