简体   繁体   English

使用Visual Studio的QT文件

[英]QT files with Visual Studio

I have some file as mentioned below 我有一些文件,如下所述

在此处输入图片说明

I am actually a .NET developer. 我实际上是.NET开发人员。 I am assuming that these are QT files ? 我假设这些是QT文件?

If so, My question is: Do i need to install something in order open these file and to understand the functionality or I can open it directly in Visual Studio ? 如果是这样,我的问题是:是否需要安装某些东西才能打开这些文件并了解其功能,或者可以直接在Visual Studio中打开它?

在此处输入图片说明

These are not really QT files but git files. 这些不是真正的QT文件,而是git文件。

Seems you do not have QT add-in for MSVC. 似乎您没有用于MSVC的QT加载项。 You can add from VS plugin 您可以从VS插件添加

.gitignore 的.gitignore

.gitignore is a file which lists files that git should not include as part of a repository. .gitignore是一个文件,其中列出了git不应包含在存储库中的文件。 It is typically used on binaries, temporary files, and packages. 它通常用于二进制文件,临时文件和程序包。

Install the qt addin to use the pro file in Visual Studio. 安装qt插件以在Visual Studio中使用pro文件。

http://qt-project.org/wiki/QtVSAddin http://qt-project.org/wiki/QtVSAddin

After installing the addin in Visual Studio it will add a Qt menu to Visual Studio. 在Visual Studio中安装插件后,它将向Visual Studio添加一个Qt菜单。 In that menu there is an option to open a pro file. 在该菜单中,有一个选项可以打开专业文件。 This will create a Visual Studio workspace from the pro file. 这将从pro文件创建一个Visual Studio工作区。 This will be a native c++ project not a .NET / CLI. 这将是一个本地c ++项目,而不是.NET / CLI。

On top of this addin you must have Qt installed. 在此插件的顶部,您必须已安装Qt。 And this should be a Qt version compiled with the same compiler that you use. 这应该是使用与您相同的编译器编译的Qt版本。 From the Qt project page there are binary downloads for several versions of Visual Studio. 从Qt项目页面可以下载Visual Studio的多个版本的二进制文件。

http://qt-project.org/downloads http://qt-project.org/downloads

The .git files are from the git version control. .git文件来自git版本控件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM