Best crossplatform C++/QT4 development environment

試著忘記壹切 提交于 2019-12-18 16:45:50

问题


I would like to develop cross-platform applications using C++ and QT4. I code on both Linux and Windows (MinGW).

Currently I'm using KDevelop and it's QMake integration. On Windows I'm trying out Eclipse with QT integration plugin. However moving sources and updating profiles/IDE project files on both systems is tedious.

I'm looking into using CMake as it can generate Makefiles, KDevelop project files and Eclipse project files.

What's your opinion? What are you using for such kind of development?


回答1:


What about QtCreator? It's still in beta but it's very light and it's really a joy to code with it.




回答2:


I've been using the new QtCreator and like it so far. Still beta though and may be missing a few tools or features that you need. QtDesigner is integrated with it. It uses QMake project (.pro) files behind the scenes, so you or other programmers can just use those directly on the command line (qmake and make) along with their favorite text editor if they don't want or can't use an IDE at some point. http://trolltech.com/developer/qt-creator




回答3:


i don't get why you have to use an IDE on both platforms. i use KDevelop on Linux, and for each test i just sync the sources to mac and windows and make/test locally on each. if something breaks, i fix it in the original sources, on Linux.

it's very seldom that i want to edit something on mac/win, and for that any decent editor is enough (BBedit/Notepad++)




回答4:


I would recommend CMake for this task. Once you get the hang of it, it's pretty easy to create cross-platform applications or libraries that use QT, using the FindQT CMake module.

There are open-source QT and KDE projects that use CMake as their build system, so you can look at their code if you need to see real use cases (I did).




回答5:


qt-apps.org environment tools has loads of free development environments listed, and much more general development tools. kde-apps.org environment tools has yet another bunch of tools, where some of them will work on Windows too.




回答6:


You can use the Qt plugin that you mention with Eclipse on Windows and Linux. The only thing you need to do when you move from one platform to the next is run qmake again to ensure your make files are correct and up-to-date. But I believe (I have not tried it) you can configure your eclipse environments to handle the qmake execution when it does an auto build. Note that the Qt plugin also allows you to do everything you do in Qt Designer.




回答7:


What about Qt Designer?




回答8:


Eclipse is a very very good candidate ( you get a nice SVN integration, Mylyn for tasks which is awesome and a world of other awesome plugins ) but sometimes you have to deal with weird problems. Otherwise it is a great IDE. Note: Really good for Java development.



来源:https://stackoverflow.com/questions/420065/best-crossplatform-c-qt4-development-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!