添加Qt到现有的Visual Studio c ++项目 [英] add Qt to existing Visual Studio c++ project

查看:897
本文介绍了添加Qt到现有的Visual Studio c ++项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的Visual Studio C ++项目。它使用GLUT创建一个主窗口,并且使用glut命令来右键单击上下文菜单。

I've got an existing Visual Studio C++ project. It creates a main window using GLUT and also uses glut for a right-click context menu.

现在我想要做的是打开一个第二个窗口属性检查器来显示和更改一些值。

All I want to do now, is to open a second window used as a property inspector to display and change some values.

每个人都建议使用Qt进行GUI开发,但我发现的所有教程都讨论了在Qt创建者工作或如何创建Qt从头开始。

Everyone recommends using Qt for GUI development, but all the tutorials I find discuss either working in Qt creator or how to create a Qt project from scratch.

我已经使用Qt几年前做类似的事情,它不是那么难以添加到我的项目。

I have used Qt some years ago to do something similar and it was not so difficult to add it to my project.

任何人都可以解释或指点一个解释如何做到这一点的教程。

Can anyone explain, or point me to a tutorial explaining how to do this?

谢谢!

推荐答案

这适用于我:


  • 手动将项目版本更改为qt项目中使用< Keyword> Qt4VSv1.0< / Keyword>'

  • 重新加载项目

  • 右键单击项目并选择更新到qt-addin项目

  • 删除qt源文件并将其添加到项目

希望它有帮助。

这篇关于添加Qt到现有的Visual Studio c ++项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆