Qt:我应该使用 Visual Studio、Qt Creator 还是其他工具? [英] Qt: Should I use Visual Studio, Qt Creator or something else?

查看:55
本文介绍了Qt:我应该使用 Visual Studio、Qt Creator 还是其他工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I realize that there have been similar questions, but they seem to have been from when Qt Creator was still in beta, so the answer might have changed since then:

We are going to start a project with a small amount of GUI that needs to work on Windows, OS X and Linux. So choosing Qt was a no-brainer, even though we have little experience with Qt.

What is currently the best option for IDE?

All the developers will be using Windows machines, so the IDE does not need to be cross-platform.

We use Visual Studio for most things, but most of us are also comfortable with Eclipse.

How are the refactoring tools in Qt Creator? I like Visual Assist X when using Visual Studio for C++. Have anyone tried using that with Qt-projects?

I realize that was a lot of different questions. Please answer even if you can't answer all of them.

EDIT:

I should probable add that we already have Visual Studio and Visual Assist licenses, so the cost of those is not an issue.

解决方案

I use Visual C++ 2008 with Visual Assist and Qt Creator with MinGW:

  • MinGW will drive you nuts, but thankfully you can use the VC++ compiler in Qt Creator.
  • The debugger integration is not as good as VC++. You can't set the next instruction or do any of the fancy stuff like see what a function has returned in the locals window. GDB is as slow as a snail.
  • Code navigation is as good as VA X (but use the tech preview, 1.2.1 is not that great)
  • Code completion is acceptable, certainly not as good as VA X. Code completion doesn't work for anything a bit more complicated such as accessing the members of a const_iterator from a QList typedef.
  • Lighter IDE than VC++ and has a nicer GUI IMO.
  • .pro files are generally easier to manage than sln

QtCreator is a good alternative to VC++ and I would definitely use it on Linux. If you already have VC++ 2005 or 2008 and VA X, I recommend that you install the Qt addin and use VC++ for development. I also recommend that you install the Qt SDK side by side and compile in both MinGW and VC++ to catch cross-platforms issues early! Try to keep the .pro files in sync to the sln and beware of this issue.

这篇关于Qt:我应该使用 Visual Studio、Qt Creator 还是其他工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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