configuration of the QT Development environment (Linux&windows)
environment configuration of Qt4.5 under Linux
Configuration of Qt5.3 under Window
About QT Learning
After this simple training, almost three weeks of time, learning about QT A lot of knowledge, using TCP to do a chat software, similar to QQ software, you can add friends, chat, friends online reminders, no database, using a file to store the client information, seemingly simple some functions, But found that a lot of code to write, because the first contact with Qt, but also because of the base of C/s + +, so it is not very difficult to learn. environment configuration of Qt4.5 under Linux
This is our teacher's method for QT installation.
A graphics library and tools for installing QT
Linux Xwindow (X11) + qt for X11
1, download qt source code Package
2, decompression
3, into the unpacked directory
4,./configure
5,make 3 hours
6,make Install
Method 2:
Qt4.5_x11.tar Download (after QT compilation, after installation of the directory)
Decompression release:
TAR-XVF qt4.5_x11.tar-c/
To configure environment variables:
Vim ~/.BASHRC
Add a row at the end of the file:
Export path= Path: path For example: Exportpath=/usr/local/trolltech/qt−4.5.0/bin:path For example: Export path=/usr/local/trolltech/ Qt-4.5.0/bin:path
The second installation method is recommended, because the first one will take a lot of time, like toss can use the first match
Environment variable takes effect:
Close the terminal and then open the terminal
Verify:
Qmake-v
main.cpp
#include <QApplication>
#include <QWidget>
int main (int argc,char **argv)
{
Qapplication app (ARGC,ARGV);
Qwidget tt;
Tt.show ();
App.exec ();
return 0;
}
Each QT project is a separate folder mkdir XXX
Go to folder CD XXX
Write code VIM main.cpp
Generate Engineering Documents Qmake-project
Generate Makefile File Qmake
Compiling make
Execute the program. configuration of Qt5.3 under/xxx window
Tools:
Download qt-opensource-windows-x86-mingw482_opengl-5.3.0 Click to download
After installation is complete
Configure Environment variables: C:\Qt\Qt5.3.0\5.3\mingw482_32\bin (refer to your own installed path)
Under the Command Line window
Verify that the configuration is successful
Input Qmake–version
Tools such as Qt Creator with the above tools
The compilation command under Windows is (entered under the Command Line window):
1. Under the project's folder (CD ...)
2.qmake-project
3.qmake
4.mingw32-make
or create a project in Qt creator that can run successfully to the directory
Use [TOC] to generate a table of contents:
Configuration of the QT development environment linuxwindows about QT Learning Linux under Qt45 Environment Configuration window Qt53 configuration directory