How to generate vcproj file from .pro file

From Qt Wiki
Revision as of 09:20, 12 June 2020 by Jobor (talk | contribs) (Cleanup. Added doc links.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

English 简体中文

To generate an initial .pro file you can use qmake's project mode.

To generate a Visual Studio project file, run qmake like this:

qmake -tp vc myproject.pro

The above command will generate vcxproj, vcproj or dsp file depending on the Visual Studio version you're using. The -tp switch is documented in the qmake manual. You can also add the name of your VS project file name using the -o option.