在 Visual Studio 中使用 Qt 时遇到问题 [英] Trouble using Qt with Visual Studio
问题描述
我希望使用 Visual Studio 2005 进行 Qt 开发.
I am looking to do Qt development with Visual Studio 2005.
我已经为 Visual C++ 构建了 Qt 库,并且已经使用列出的步骤下载了 Qt 插件 此处.
I have built the Qt libraries for Visual C++ and have downloaded the Qt plug-in using the steps outlined here.
我已将 QTDIR
环境变量设置为指向新构建的 Qt 环境 (C:\Qt\vc
).
I've set the QTDIR
environment variable to point to the newly built Qt environment (C:\Qt\vc
).
但是,当我启动 Visual Studio 时,我收到以下消息:
However, when I start Visual Studio, I get the following message:
These Qt versions are inaccessible:
vc in c:\Qt\vc.
Make sure that you have read access to all files in your Qt directories.
(而且我绝对有读取权限)
(And I definitely have read access)
我该如何解决这个问题?
How can I fix this?
推荐答案
我修复了它.关键是将 QTDIR
指向环境中的 qt
目录,所以在我的例子中是 c:\Qt\vc\qt
.错误信息不是很直观.
I fixed it. The key is to point QTDIR
to the qt
directory within the environment, so in my case c:\Qt\vc\qt
. The error message is just not very intuitive.
这篇关于在 Visual Studio 中使用 Qt 时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!