What would be the best IDE to start programming with QT framework? IDE should support linux, windows and have a good mercurial integration.
If you're doing development in Windows then VisualStudio is really the best all-around C++ IDE I've used. If you have the Qt commercial license then you can use TrollTech's VisualStudio integration suite which gives you:
- Qt project management utilities
- a WYSIWYG GUI builder
- a nice automatic build system for the Qt moc
All from inside the IDE.
Choice of IDE is very personal. Some people prefer Visual Studio, other Emacs. Neither is "best".
You have plenty of choice of IDE with Qt. I use Qt's QMake tool to create Visual Studio projects on Windows and to create Make files on MacOSX (or XCode projects if I need the debugger). It works fine.
I will also be looking at QtCreator, but I doubt it can match the maturity add add-on ecosystem of Visual Studio.
Haven't programmed for Linux is quite some time and I don't know anything about Mercurial integration.
This is a follow-up to stbutton's answer. I would agree with him in that Visual Studio is the best* IDE around, and the Qt integration with it is top-notch. They did a very good job making it seamless.
For the cross-platform development, use cmake. You can maintain a single special makefile, and cmake will spit out the correct VS project and solution files for you (as well as various other more Linux-friendly IDEs). This way you can make Windows your primary development environment, but not be left out in the cold when it comes to other platforms. There are even tools that can take a VS solution and turn it into a cmake file.
*YMMV, as this is only my own opinion. This answer really works for any IDE that cmake supports, should that IDE be your favorite.