VS integrated Qt, vs. vcxproj.user files in relation to QT

Source: Internet
Author: User

Environment:

windows 7 + VS2013 + Qt5.3.0 + addin1.2.4

Analyse:

.vcxproj.user is user profile, saving user data.


when you create a QT application project, you will Add the following two lines of content to the. vcxproj.user file .

<QTDIR>E:\Qt5.3.0\x64</QTDIR>//indicates the absolute path of the Qtdir

<localdebuggerenvironment>path= "$ (qtdir) \bin\%3b$ (PATH) </localdebuggerenvironment>//JOIN environment variable

vs this two-line content obtains the Qtdir path, before joins the running environment.

So when uploading the code, you need to upload . vcxproj.user file.


When the Qtdir is not added as a Global environment variable:

The contents of the Qtdir path are written to the. vcxproj.user file and are only written when the QT project is created, so after you delete the. vcxproj.user file, you are prompted to run the compilation program:

>moc ' ing ***.h ...

The > system could not find the path specified.

Last popup: Error MSB6006: "cmd.exe" exited with code 3.


When the QT4 project is transplanted to QT5:

because QT4 did not save Qtdir to .vcxproj.user, So, will also pop error MSB6006:" cmd.exe "exited with code 3. Error.

Workaround, simply add the two lines above to the corresponding location in the newly generated vcxproj.user file.

VS integrated Qt, vs. vcxproj.user files in relation to QT

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.