简体   繁体   English

适用于Visual Studio 2013的QT加载项

[英]QT Addin for Visual Studio 2013

I have some problems getting the QT Addin for Visual Studio to work correctly. 我在使QT Addin for Visual Studio正常工作时遇到一些问题。

What I did (running Windows 8.1 Pro): 我做了什么(运行Windows 8.1 Pro):

  • I installed Visual Studio 2013 我安装了Visual Studio 2013
  • I installed QT (using qt-opensource-windows-x86-msvc2013_64-5.3.1.exe) 我安装了QT(使用qt-opensource-windows-x86-msvc2013_64-5.3.1.exe)
  • I downloaded the QT VS addin (qt-vs-addin-1.2.3-opensource.exe) and installed it... 我下载并安装了QT VS插件(qt-vs-addin-1.2.3-opensource.exe)...

What I think does not work correctly: 我认为无法正常工作:

  • Visual Studio does not show the entry "QT" in the main menu bar Visual Studio在主菜单栏中不显示条目“ QT”
  • Under File->New->Project is no entry to select a QT Project 在File-> New-> Project下没有选择QT项目的条目

I added a path (C:\\Program Files (x86)\\Digia\\Qt5VSAddin\\12.0) to the addin search paths. 我在插件搜索路径中添加了路径(C:\\ Program Files(x86)\\ Digia \\ Qt5VSAddin \\ 12.0)。 After that the entry "QT" in the main menu bar showed up. 之后,在主菜单栏中显示“ QT”条目。

I configured the qt version (QT->QT options): 我配置了qt版本(QT-> QT选项):

Name          Path
msvc2013_64   C:\Qt\Qt5.3.1\5.3\msvc2013_64

Since I cannot create a QT Project within VS, I created one with QTCreator and opened the existing one in VS. 由于无法在VS中创建QT项目,因此我使用QTCreator创建了一个项目,并在VS中打开了现有项目。 Unfortunately it does not work either: 不幸的是,它也不起作用:

Fehler  1   error LNK1117: Syntaxfehler in Option  
"SUBSYSTEM:WINDOWS@QMAKE_SUBSYSTEM_SUFFIX@".    C:\proj\qt-test\LINK    qt-test

EDIT: There is now a bugreport . 编辑:现在有一个错误报告 The whole setup works for me, if I run VS with admin privileges, as described in the bugreport. 如果我以管理员权限运行VS,则整个设置对我都有效,如错误报告中所述。

Well, then I assume this is closed? 好吧,那我假设这是封闭的?

To avoid the error, you must go to Project Properties -> Link -> Command line . 为了避免该错误,您必须转到Project Properties-> Link-> Command line

You then see the string: 然后,您会看到以下字符串:
/SUBSYSTEM:WINDOWS%40QMAKE_SUBSYSTEM_SUFFIX%40
Replace it by: 替换为:
/SUBSYSTEM:WINDOWS


Source : QtCenter 资料来源: QtCenter

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

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