构建 Qt/MSBuild 格式的解决方案 2
Qt/MSBuild 项目格式在不同 Qt VS Tools 版本之间有所变化。
要构建具有项目格式 2 的解决方案,请
- 打开解决方案。
- 在上下文菜单中,转到Properties >C/C++ >Command Line 以设置其他命令行选项。
- 在Additional Options 中,输入以下选项:
/std:c++17 /Zc:__cplusplus /permissive-
- 转到Extensions >Qt VS Tools >Qt Versions 。
- 选择最初创建项目的 Qt 版本,然后选择Default 。

另请参阅 "添加 Qt 版本"、"将解决方案转换为最新的 Qt/MSBuild 格式"和 "构建"。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.