【问题标题】:Why does not Qt5 addin work in Visual Studio?为什么 Qt5 插件在 Visual Studio 中不起作用?
【发布时间】:2015-06-30 18:20:16
【问题描述】:

我的电脑上有以下配置-

1) Visual Studio 2013 64bit      
2) Installed QT5.4.2 64bit with openGL  
3) Qt5Package addin

安装插件后,它会像这样显示在菜单栏上-

但我无法配置任何东西,因为 QT5 中的菜单栏选项都不起作用。我的意思是当我点击一个菜单项时它什么也不做。

我尝试卸载并重新安装插件,但仍然遇到同样的问题。这个问题的解决方法是什么?

此错误消息仅出现一次:

ActivityLog.xml 文件中我发现了这个-

 <entry>
    <record>825</record>
    <time>2015/07/06 04:53:50.918</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{DDD4B302-4A66-4606-A193-AF0CB0D67E5C}</guid>
  </entry>
  <entry>
    <record>826</record>
    <time>2015/07/06 04:53:50.918</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [VSPackage]</description>
    <guid>{DDD4B302-4A66-4606-A193-AF0CB0D67E5C}</guid>
  </entry>
  <entry>
    <record>827</record>
    <time>2015/07/06 04:53:50.919</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [VSPackage]</description>
    <guid>{DDD4B302-4A66-4606-A193-AF0CB0D67E5C}</guid>
    <hr>80070002</hr>
    <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>
  <entry>
    <record>828</record>
    <time>2015/07/06 04:53:50.919</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [VSPackage]</description>
    <guid>{DDD4B302-4A66-4606-A193-AF0CB0D67E5C}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>

【问题讨论】:

    标签: visual-studio-2013 qt5 visual-studio-addins


    【解决方案1】:

    Visual Studio 库 中的Qt5package 插件存在依赖问题。所以你需要从this link下载完整的插件包。

    【讨论】:

      【解决方案2】:

      完整的插件包在 Visual Studio 2015 中不起作用,所以我使用了 Qt5Package。

      我在使用 Qt5.6.0 的 Beta 版本时遇到了同样的问题。我找到了一个解决方法 - 在 C:\Qt\Qt5.6.0\5.6\msvc2015\mkspecs\common\msvc-desktop.conf Qt 5.6.0 将所有特定于版本的更改拆分到一个单独的文件 msvc-base.conf 中。如果您复制此文件的内容并替换 mscv-desktop.conf 中的“include(msvc-base.conf)”行,则 Qt5Package 可以毫无问题地识别 Qt 5.6.0 Beta。

      请注意,这仍然需要在 Qt5Package 中修复。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-03-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多