混合Qt和升压 [英] Mixing Qt and Boost

查看:107
本文介绍了混合Qt和升压的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在看些关于C ++使用Qt 4的框架(需要一个跨平台GUI)的项目。我对朋友和在线Boost库听说伟大的事情。我已经开始在两个读书和想问一个粗略的问题之前,我有太深:是这两个发展系统相互排斥?

I'm looking at starting a project in C++ using the Qt 4 framework (a cross-platform GUI is required). I've heard great things about the Boost libraries from friends and online. I've started reading up on both and wanted to ask a cursory question before I got too deep: Are these two development "systems" mutually exclusive?

我最初的搜索和阅读说明在信号处理方面有些重叠,自定义生成系统和其他低级别的原语。

My initial searching and reading shows some overlap in the signal handling, custom build systems, and other low-level primitives.

是否有意义双方在同一个项目中使用它们?

Does it make sense to use them both in the same project?

推荐答案

是的,这非常有意义。我一般会preFER使用升压/ stdlib的功能,在可能的情况,而不是他们的Qt替代品。

Yes it makes perfect sense. I would generally prefer using the boost/stdlib functions where possible rather than their Qt alternatives.

这使得code更容易地移植到下一个框架。结果
这使得对新的非程序员的Qt获得高达速度更轻松。结果
升压有一些伟大的功能,并且也越来越所有的时间。

It makes the code easier to port to the next framework.
It makes is easier for new non-Qt programmers to get upto speed.
Boost has some great functionality and is getting more all the time.

请注意:字符串/从部件很可能是主要的例外 - 在GUI里面我会使用Qt字符串来保存到处都是混乱的演员

note: strings to/from widgets are probably the main exception - inside the GUI I would use Qt strings to save confusing casts everywhere.

这篇关于混合Qt和升压的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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