visual-studio 如何将 Visual C++ 项目导入 Qt Creator?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1110448/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 10:44:46  来源:igfitidea点击:

How do I import a Visual C++ project into Qt Creator?

visual-studioqtqt-creator

提问by jhowland

I have been working with the commercial version of Qt on Windows for some time, so have a large collection of Visual Studio projects (vcprojfiles).
I would like to begin moving these projects into Qt Creator — I have certainly moved some of them "by hand", and can make that work — but it seems like there ought to be (might be?) a Visual Studio import script or app or capability of some kind.

我在 Windows 上使用商业版 Qt 已经有一段时间了,因此拥有大量 Visual Studio 项目(vcproj文件)。
我想开始将这些项目移动到 Qt Creator 中——我当然已经“手动”移动了其中的一些,并且可以完成这项工作——但似乎应该(可能?)一个 Visual Studio 导入脚本或应用程序或某种能力。

Does anybody know of such a thing, or of a definable set of procedures to move a project from one to the other?

有没有人知道这样的事情,或者有一套可定义的程序来将项目从一个转移到另一个?

采纳答案by PowerApp101

You can export to a pro file (or maybe a pri file, can't remember) from the Qt menu in VS.

您可以从 VS 中的 Qt 菜单导出到 pro 文件(或者可能是 pri 文件,不记得了)。

回答by Mike McQuaid

You could perhaps make a Makefile which calls devenv to build your project/solution from the command-line and the use "Import from a Makefile-based project" from the new menu.

您也许可以制作一个 Makefile,它调用 devenv 从命令行构建您的项目/解决方案,并从新菜单中使用“从基于 Makefile 的项目导入”。