QT Learning _01 Environment Preparation _QT installation, git installation, qtcreator configuration

Source: Internet
Author: User
Tags commit touch touch command ssh

1, blog description

Some time ago, only set up a title, and did not write specific content, this plan to add up later, some things have not been dealt with, come up today to see actually have 78 of the traffic, to these people in the table of apology, these articles have been deleted, take advantage of these days when the content of the comb published to the blog to make a backup.


2, qt download access to QT Enterprise version of the official website http://qt.digia.com/or QT Open source version of the website http://www.qt-project.org/, find the download link, Enterprise version need to register, register will receive QT sent Download link, open source version can download directly.


3, QT installation Note: At the beginning of installation, need to provide QT authorization file, in Qt sent to you in the mail contains the installation sequence, the probationary period of 30 days. Since I have already installed, so did not appear during this installation process.

1, the QT Enterprise version provided by the link downloaded for the online installation version, download the file as shown below


2), double-click Qt-enterprise-windows-x86-1.5.0-online.exe to open the installation program, the following figure


3), click Next, enter the installation directory selection interface, the following figure



4), click Next to open, install Component selection interface, the following figure

5, select the required components, I am MSVC2012 64-bit OpenGL, such as the choice of MinGW 4.8 (32bit), Remember to select MinGw4.8 in Tools, recommend friends choose MinGW Series, can reduce some configuration, click Next, open the Licensing Agreement page


6), select the first item, click Next to open the program folder name, the following figure


7), click Next, will show the installation program to install the parts, the following figure


8), click Install, the program will download the required components, and automatically installed, the time required to see the network situation, as shown in the following figure


9, until the installation of the completion of QT installation, even if completed.


4, git installation

1), open http://git-scm.com/, you can see the download location, the following figure


2), click Download for Windows, the system will automatically download Git-1.8.4-preview20130916.exe, as shown below


3), double-click Git-1.8.4-preview20130916.exe, open the installation interface, the following figure

4), click Next, open the Licensing information page, as shown in the following figure

5), click Next, open the installation component interface, using the default can be, the following diagram,


6), click Next, go to Bash Selection page, by default, I select the second item, as shown in the following figure


7), click Next, select Default, as shown in the following figure



8), click Next, git to start the installation, as shown in the following figure


10, when the installation is complete, the installation of the completion of the interface, click Finish, as shown in the following figure


5, qtcretor configuration git version management tool

1, from the https://code.csdn.net/registration account and create their own projects, record the project address git@code.csdn.net: Your user Id/your project name. Git, spare.

2, open cmd, enter the following content to set up a global account

git config--global user.email "Your email address when registering code"

git config--global user.name "Your code name"


3), generate the RSA public key, enter the following content


Ssh-keygen-c "Your email address"-t RSA


The default carriage return generates a pair of asymmetric private keys, which are stored in the xp/2003 User: c:\Documents and Settings\ login \.ssh Vista User: c:\Users\ login name \.ssh the. SSH folder, secret The key is in the Id_rsa file, ignore it, SSH public key in Id_rsa.pub, please open it with a text editor, copy all the characters inside

4, Code account settings, click the SSH public Key management, select Add Public key, the copied characters pasted into the public key text box can be.

5, in the local new folder Appcode, in cmd switch to this folder, execute


Type >git init to system initialize the current git warehouse directory

Type >touch Readme to create a file named Readme with the Touch command

Type >git Add Readme to add the file Readme to git version control

Type >git commit–m ' Add Filereadme ' submit a new version to the Git warehouse

Type >git remote Add origin git@code.csdn.net: Your user Id/your project name. Git builds a branch locally named origin for the remote server, and later when you submit a local update to a remote server , you can use the origin alias to replace "git@code.csdn.net: Your user Id/your project name. Git"

Type >git pull Origin Master to update the contents of the master branch of the remote server to the local branch

Type >git push Origin master to submit all modifications of the local Master branch to the master branch on the remote git server

After you have completed the above, you can visit the code on your project to see if God has a file Readme


6, open Qtcreator, for git settings, choose git installation directory Git.exe Click OK, the following figure



7), create a new item under Appcode, and then click the tool-git-local Repository-commit, as shown in the following figure



8), select the file input annotation, click Commit, as shown in the following figure


9), click Tool-git-remote repository-pull for code update, as shown in the following figure,


10), click the tool-git-remote Repository-push for code submission, as shown in the following figure,

10, the operation information displayed in the version console, as shown in the following figure,

 

 

10, if unable to upload, add the following code to Appcode. Git folder at the end of config file.


[branch "master"]
Remote = origin
Merge = Refs/heads/master


So far, the QT development environment is ready to work. The document is not well written and it requires a lot of practice.

If you are having problems, please email me and email me: cforqt@gmail.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.