QT Creator Download
Http://pan.baidu.com/s/1hsqBQPe
Filename
qt-opensource-windows-x86-mingw492-5.6.0
An installation
Quite large, after being installed 5G.
Two Hello World programs 1 simple signals and slots
Place a push button on the form, and change the button text to "Exit";
Locate the signal and slot editor;
Edit the following signals and slots;
Run, click the button to exit the program.
2 Hello World program new Empty project;
Add CPP file;
Operation Result:
#include <QApplication> #include <qlabel>int main (int argc, char *argv[]) { qapplication A (argc, argv); C1/>qlabel *label = new Qlabel ("Hello, world!"); Label->show (); return a.exec ();}
Error:
Qapplication:no such file or directory
The workaround is to add a line of QT + = widgets to the Helloworld.pro project file
SOURCES + = HELLOWORLD.CPPQT + widgets
QT Tutorial Resource Links
http://blog.51cto.com/zt/20/1/
QT Learning Path: from Beginner to proficient
Schematic introduction to QT programming under Windows