visual-studio Qt Creator 中的 Visual Studio 解决方案

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3157347/
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 12:11:07  来源:igfitidea点击:

Visual Studio solutions in Qt Creator

c++visual-studioqtqt4qt-creator

提问by liaK

I am using Qt 4.5 and having Qt Creator as the IDE. I am quite comfortable with it. I know we can open the .profiles (from the Qt Creator) in the Visual Studio IDE. But how about the reverse? i.e How can I open a visual studio Qt solution (.sln) in Qt Creator? Is it possible or I have to create a pro file again for the project?

我使用 Qt 4.5 并使用 Qt Creator 作为 IDE。我对它很满意。我知道我们可以.pro在 Visual Studio IDE 中打开文件(来自 Qt Creator)。但是反过来呢?即如何在 Qt Creator 中打开 Visual Studio Qt 解决方案 (.sln)?是否有可能或者我必须为该项目再次创建一个 pro 文件?

There are other Qt projects which are created by others in Visual Studio IDE. So if I am supposed to use those, can I migrate those Visual Studio solutions to a Qt Creator compatible wayso that I can continue to use Qt Creator? I am using Windows XP. Any pointers regarding this are welcome.

还有其他 Qt 项目是由其他人在 Visual Studio IDE 中创建的。因此,如果我应该使用这些,我是否可以将这些 Visual Studio 解决方案迁移到 Qt Creator 兼容的方式,以便我可以继续使用 Qt Creator?我使用的是 Windows XP。欢迎任何有关这方面的指示。

采纳答案by metdos

You can install Visual Studio Add-in of Qt, then in Visual Studio, Qt menu will appear.There is an export option to create .pro files.

您可以安装 Qt 的 Visual Studio Add-in,然后在 Visual Studio 中,会出现 Qt 菜单。有一个导出选项可以创建 .pro 文件。

Edit: Detailed Information

编辑:详细信息