Visual Studio 2017 qt Configuration

Source: Internet
Author: User

1. VS IDE Installation Extension (Tools-> "Extend and update"-> "online" option)

Enter "QT" Search and click on the download:

When the download is complete, close vs, the following window will appear, click "Modify" to complete the QT plugin installation:


2. Run again vs

The menu bar has Qt's menu:


Click on it and select QT options to configure the associated path for the installed QT:


Multiple QT versions can be specified, where a default development version is selected:


3. New Test Project


Here, create a "Qt GUI application":

After the next step, modify the base class here to Qdialog, which means the main window is a dialog box, and the default is Qmainwindow:


Then right click on the solution and configure the project:


Select a developed QT version:


4. Compile

Error:


Use the official website qalgorithms.h file to replace the file under C:\Qt\Qt5.8.0\5.8\msvc2013_64\include\QtCore.

Compile again, error:


Well, the installation of this QT version does not support vs2017, looked at, I just installed qt is for vs2013 ...

5. $%^&**%^ ... Reload the 5.10.1 for vs2017~, repeat the steps above, OK:


Run:


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.