簡體   English   中英

為什么Qt5外接程序不能在Visual Studio中工作?

[英]Why does not Qt5 addin work in Visual Studio?

我的PC上有以下配置-

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 Gallery中提供的Qt5package外接程序具有依賴性問題。 因此,您需要從此鏈接下載完整的插件程序包。

完整的插件程序包在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中修復。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM