如何在VS2008中使用QT库
我目前有一个在 VS2008 中进行的项目,但我想使用几个 QT 库。有人告诉我,如果我安装 QT,我可以将其配置为使用 VS2008 编译器进行编译,因此只需将我的工作转移到此为止,并且也能够使用 QT 库。这是最好的解决方案,还是我可以安装 QT Visual Studio 插件,并通过它使用 QT 库?
(我要使用的库没有附带基本的QT包,需要单独下载安装)。例如 http://qwt.sourceforge.net/
非常感谢
I've currently got a project going in VS2008, but I want to use a couple of QT libraries. I've been told that If I install QT, I can configure it to compile using the VS2008 compiler, and so just transfer my work so far over, and be able to use the QT library as well. Is this the best solution, or can I install the QT Visual Studio plug-in, and use QT libraries through that?
(The libraries I want to use don't come with the basic QT package, and need to be downloaded and installed separately). e.g. http://qwt.sourceforge.net/
Many Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您有两种选择:
分钟安装
moc
正确编辑(头文件的预处理)我的个人建议:进行编译,如果是第一次,请编译示例以及它们是否超过一开始很有用。
You have two choices:
Note that
moc
ed correctly (preprocessing of header files)My personalize advice: go for compilation and if it's the first time, compile the examples as well are they are more than useful to begin with.
此外,如果没有一些包装器,Qt 库就无法与标准 MFC 应用程序一起使用。如果您想在源中使用 qt 小部件,则需要安装 qtwinmigrate,可以在此处找到它 http:// /qt.gitorious.org/qt-solutions
Also, Qt libraries are not working with standard mfc apps without some wrappers. if you want to use qt widgets in your source, you need to install qtwinmigrate, which could be found here http://qt.gitorious.org/qt-solutions
您可以使用 qt-vs-addin,并在 qt->Qt Project Settings 中配置库
You can use qt-vs-addin, and configure libraries in qt->Qt Project Settings