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

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

1. Blog Description

A period of time, only set up a title, and did not write the specific content, this plan to add up later, some things have not been dealt with, today came up with a look incredibly have 78 of the traffic, in this way to these people table label apologies, these articles have been deleted, while these days will be free to comb the content under the blog to make backup


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


3, QT installation Note: At the beginning of the installation, you need to provide QT authorization file, in the QT sent to your email contains the installation sequence, the trial period of 30 days. Because I have already installed, so this installation process does not appear.

1), the QT Enterprise version provides links to download 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 installer, as shown below


3), click Next, enter the installation directory of the selection screen, as shown below



4), click Next to open, install the component selection interface, as shown below

5), select the required components, I am MSVC2012 64-bit OpenGL, such as select MinGW 4.8 (32bit), Remember again tools inside choose MinGw4.8, recommend friends choose MinGW Series, can reduce some configuration, click Next, open the License Agreement page


6), select the first item, click Next to open the program folder name, as shown below


7), click Next, will show the installation program to install the parts, as shown below


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


9), until the installation process, QT installation even if completed.


4. Git installation

1), open http://git-scm.com/, you can see the download location, as shown below


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, as shown below

4), click Next, open the authorization Information page, as shown in the image below

5), click Next, open the installation component interface, using the default, as shown below,


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


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



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


10), when the installation is complete, the installation completed interface, click Finish, as shown in the figure below


5. Qtcretor Configuration git version management tool

1), register the account from https://code.csdn.net/and create your own project, 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 the global account

git config--global user.email "Your email address when you signed up for code"

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


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


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


The default carriage return generates a pair of asymmetric public \ Private keys, by default they are stored in the xp/2003 User: c:\Documents and Settings\ login name \.ssh Vista User: c:\Users\ login \.ssh the. SSH folder below, the secret Put the key 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), hit the Code account settings, click SSH Public Key Management, select Add Public key, paste the copied characters into the Public key text box.

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


Type >git init to system initialize the current git repository 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 ' to submit a new version to the Git repository

Type >git remote Add origin git@code.csdn.net: Your user ID/your project name. Git establishes a branch called origin for a remote server locally, and later when you commit a local update to a remote server , you can use the origin alias instead of "Git@code.csdn.net: Your User ID/your project name. Git"

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

Type >git push Origin master commits all changes to the local master branch to the master branch on the remote git server

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


6), open qtcreator, git settings, choose the GIT installation directory Git.exe Click OK, as shown below



7), create a new project under Appcode, then click on the tool-git-local Repository-commit, as shown in the figure below



8), select File input comment, click Commit, as shown in the figure below


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


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

10), perform 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 the config file.


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


At this point, the QT development environment is ready for completion. The document does not write well, still need to practice more.

If you have any questions, please contact me by e-mail: 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.