Qt Creator 与 Xcode 在 Mac 上进行 Qt 开发
我即将在 Mac 上启动一个 Qt 项目,但不确定要选择哪个 IDE:
- Qt Creator
- Xcode
这两个 IDE 在 Mac 上进行 Qt 开发的优点/缺点是什么?
I'm about to start a Qt project on the Mac and I'm not sure which IDE to choose between:
- Qt Creator
- Xcode
Which are the advantages/disadvantages of these two IDEs for Qt development on the Mac?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
就我个人而言,我使用 QtCreator 是为了在所有平台上拥有相同的功能。我认为它的主要优点是它是为 Qt 开发的。
我认为 XCode 的主要优点是它与 MacOSX 的集成。
现在对你来说这取决于:
那么我的建议是:使用你喜欢使用的 IDE
Personally I'm using QtCreator in order to have the same on all platforms. The main advantage I give to it is that it have been developed for Qt.
The main advantage I give to XCode is its integration to MacOSX.
Now for you it depends:
Then my advice is: use the IDE you prefer to use
Qt Creator 在代码编辑、UI 设计和调试方面与 Qt 有了更好的集成。而且跨平台都是一样的。
我对 Mac 上的 Creator 的问题是它的调试工具与其他平台不一样。 Python 脚本调试器的功能不如 Windows 版本的 Creator。这不是 Qt/Nokia 的错,因为 Mac 上的 gcc/gdb 版本落后。 Apple 将重点转向了 LLVM,并留下了 gcc 工具链,呃,在平台上自然消亡。
实际上,我的大部分开发工作都是在 Windows VM 上进行的。仅切换到 Mac 来构建和调试仅 Mac 特定的内容。
Qt Creator has much better integration with Qt in code editing, UI designing, and debugging. And it's the same across platform.
My issue with Creator on the Mac is it's debugging facility is not on a par with other platform. The python script-able debugger is not as functioning as, say Windows version of Creator. This is not Qt/Nokia's fault since the gcc/gdb on Mac are versions behind. Apple switched its focus to LLVM and left gcc tool chain, eh, to its natural death on the platform.
I actually do much of my developing on a Windows VM. Only switch to Mac for building and debugging something that's only Mac-specific.
两种选择都有问题。 Qt Creator 对于具有复杂项目层次结构(文件夹结构复杂)的项目存在问题。
使用 Xcode,如果您希望在项目中拥有一些 Objective-C 源代码并且希望能够单步进入 Qt,则会出现问题调试时使用源码。
我的大部分开发都是在 Mac 上使用 Xcode 和 BBEdit 完成的。我会切换到 Windows 上的 Developer Studio 进行测试,或者如果我需要在调试时能够进入 Qt。
考虑到我们在这些环境中工作的时间,您应该尝试这两种环境并使用最适合您的方式。
Both options have issues. Qt Creator has problems with projects that have complicated project hierarchies (complicated in terms of folder structure.)
With Xcode, there are issues if you want to have some objective-c source in your project and if you want to be able to step into Qt source while debugging.
Most of my development is done on the Mac using Xcode and BBEdit. I switch over to Developer Studio on Windows for testing or if I need to be able to step into Qt while debugging.
Given the amount of time we all spend working working in these environments, you should try both and use what suits you best.
您还需要考虑日食。我上周一直在使用 Qt Creator,作为一名长期 Eclipse 用户(对于 Java 和 C++),我发现它的性能较差。一旦(如果)Xcode 4 支持添加到 Qt,这可能会改变,但目前我的投票结果是 eclipse,即使没有可用的“Qt Integration”(即仅使用“C++ Makefile 项目与现有源”)。
You also need to consider eclipse. I have spent the last week using Qt Creator and being a long-time eclipse user (for both Java and C++) I find it inferior. Once (if) Xcode 4 support is added to Qt, this might change, but at the moment my vote goes with eclipse even without the 'Qt Integration' available (i.e. just using the 'C++ Makefile project with existing sources').