使用Visual Studio 2015设置Qt5

问题描述:

在Google中搜索"Qt5-Windows 10-VS 2015"仅显示了4月份的博客文章,指出正在开发对VS 2015的支持(

Searching Google for 'Qt5 - Windows 10 - VS 2015' only brought up a blog post from April stating that support for VS 2015 is in the works (link).

Qt5下载页面(开放源代码版本)当前没有指向Visual Studio 2015的链接.那么,是否有可能在VS 2015中使用Qt5,或者只有在出现新问题之前我才能拥有Qt5?

The Qt5 downloads page (OpenSource version) currently has no links for Visual Studio 2015. So, is it possible to use Qt5 in VS 2015, or do I just have until something new comes up?

PS.我只是想避免在VS2015之上安装VS2013.如果需要,我可以从源代码构建.

PS. I just want to avoid installing VS2013 on top of VS2015. I can build from source should it be needed.

预先感谢

我刚刚写了

I just wrote a small article explaining how to compile Qt 5.5.1 (with QtWebkit) with Visual Studio 2015.

我知道这绝不是一个很好的答案:虽然可以完成,但该文章主要依赖于您可以从我的网站下载的助手Windows批处理文件.结果,尽管我不打算拉我的网站或文章本身,但其他SO用户或管理员有权将这个答案标记为过于易动...

I realize this is by no mean a good answer: while it does the job, that article mostly relies on helper Windows batch files you can download from my site. As a consequence, while I don't plan to pull my site or the article itself, other SO users or admins would be in their right to flag this answer as too volatile...

无论如何,在Qt员工提供使用Visual Studio 2015构建的官方预编译二进制文件之前,我相信我的文章可以帮上忙.希望有帮助.

Anyways, until Qt folks offer official pre-built binaries built with Visual Studio 2015, I believe my article saves the day. Hope that helps.