Qt Environment Setup (Visual Studio) __qt

Source: Internet
Author: User
Tags pack visual studio 2010
Brief

Often asked me to write QT program using what the IDE, in fact, this is really difficult to answer (strengths), can only say to see personal hobbies, because I use two, and two are very fond of (more amorous bar O (∩_∩) o~).

The following is a comparison of Qt creator with Visual Studio, which you can refer to.

Visual Studio + QT: This represents Visual Studio integrated QT Development, which is the integration of QT plug-ins into Visual Studio.

Brief introduction to QT creator and Visual Studio comparison Visual Studio 2013 download install qt download install qt download qt installation Configuration development Environment Run program Import QT project new QT project configuration environment variable

Qt Creator comparison with Visual Studio

Qt Creator:
Designed for QT design, free, lightweight, simple and crisp, with other compilers better integrated, and with a large number of examples and tutorials, easy to use, easy and easy.

Visual Studio:
Visual Studio is relatively large, but not QT C + + code or library debugging is more convenient, can cooperate with visual Assist x use, whether it is coding, or debugging, are quite powerful. It also supports more third-party accessibility tools, such as the Distributed compiler tool IncrediBuild (a significant boost to compilation performance), the performance test tools VTune, the static Code checker, the Code coverage tool, and so on, which provide Visual Studio Plug-ins.

If it is a beginner, then it is recommended to learn to use QT Creator first.

A large part of the reason why many people dislike Visual Studio is that Visual Studio is not an Open-source software, a commercial software (offering free community edition), and a larger installation package (many mirrors 2, 3G many), a longer installation time and a more complex configuration ... The last thing to say is: Is this a matter for the program ape? Visual Studio 2013 Download Installation Visual Studio Chinese official website Visual Studio all downloads

Visual Studio Community 2013

The Visual Studio Community Edition, launched by the Microsoft Visual Studio family in 2014, is a free, full-featured development environment version for students, open source contributors, small companies, start-ups, and small business designs.

The Community edition features non-enterprise applications that develop across desktops, devices, clouds, networks, and services, as well as compiling productivity capabilities, and Cross-platform development tools for Windows, iOS, and Android. In short, it is the perfect application to enter the development world or create the next great application.

Providing a free version of advanced development tool tools for non-commercial use is a major step for Microsoft. By allowing anyone to use their development tools, Microsoft is helping to strengthen the Microsoft development Community.

Note: The Community edition needs to use the Microsoft account to log in, otherwise will be prompted to expire in a period of time.

1, choose Community 2013, download installation, step no longer list (fool-type-next).

2, the installation of Visual Studio by default is English, if the English not cold children's shoes, you can download the Chinese language pack.

3, after the installation is completed, you need to set up before it can take effect.

Open Visual Studio, select Tools->options->environment->international Settings, and the language configuration option appears on the right. Language default is the current 中文版, click the dropdown arrow, select Chinese (Simplified), click OK.

Note: The following image is the interface I have converted to Chinese.

After the Chinese Language pack configuration is complete, it is still in English, and the visual Studio 2013 is restarted, which is the Chinese version.

Note: If you are Windows 7 and you need to install Visual Studio 2013, you will need to have Windows 7 Service Pack 1 and IE10 or above version support.

Windows 7 and Windows Server 2008 R2 Service Pack 1 Downloads

qt Download Installation qt Download

Download the Qt5.5 installation package (Qt-windows-opensource) with the QT plugin (Visual Studio add-in)

QT Download
QT All Downloads
QT Official release download
Open Source Download

Find the corresponding version to download, which contains a number of different versions, MSVC2010, MSVC2012, MSVC2013, respectively, to support Visual Studio 2010, Visual Studio 2012, Visual Studio 2013 QT version, Android, iOS is to support the Android, iOS platform Qt version, OpenGL and non-OpenGL difference is whether to support opengl;x86, x64 respectively support 32-bit and 64-bit operating system.

The version I selected here is: Qt-opensource-windows-x86-msvc2013-5.5.1.exe (32-bit support for Visual Studio 2013)

QT Installation

Qt-opensource and visual Studio add-in installation sequence is not required, the installation process is no longer said (fool-type-next), the installation path does not contain Chinese, white space, special characters (~<>|? *!@#$%^&:,;).

After the installation completes Visual Studio add-in, Visual Studio appears with the appropriate QT options.

Configuring the development environment

Selection: QT5->QT options->add, configuring the Qt development environment.

This is chosen according to the Qt installation path, path: D:\Qt\Qt5.5.1\5.5\msvc2013.

Running Programs Import QT Project

Select: Qt5->open Qt Project File (. Pro) ...

New QT Project

1, select: File-> new-> project->QT5 PROJECTS->QT application, enter project name, next ... For new.

2, choose: Qt5 PROJECT->QT Application, and then fill in the project name (Hello World)

3, the choice of dependent modules: the most basic Qtcore, Qtgui, qtwidgets and some audio/video, network, database, XML, OpenGL-related modules, you need to use the direct check.

4, compile run, choose: Debug-> Start execution or CTRL+F5.

Configure environment Variables

If you have not configured an environment variable, you can find an executable program in the engineering directory that runs directly with the missing *.dll error message.

Workaround:

(1) Right-click Computer-> Properties-> advanced system Settings-> advanced-> environment variables, add environment variables (recommended) qtdir:d:\qt\qt5.5.1\5.5\msvc2013 Path:%qtdir%\bin

(2) Locate the missing *.dll (D:\Qt\Qt5.5.1\5.5\msvc2013\bin) in the Qt installation directory and place it in the same directory as the executable (not recommended).

Related Article

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.