Hi i would be really interested in how you achieved that? Can this be done without having to rebuild qt-creator or is the switch a "compile-time option"? The problem is that i have some COM-Stuff in my qmake-project and it would be really helpful if i could get code completion to work and my hopes are that the newer version of gcc is better at working with the COM-macros
QtCreator is great*, it has intellisense, integrated debugger, and etc... I use it with MinGW (the GCC C++ compiler ported to windows). The version of MinGW that ships with QtCreator is 4.5 I think, but I manually upgraded to v4.6 which better supports the C++11 standard. (GCC is on 4.7, but that version hasn't yet been ported to MinGW and Windows yet - when it is ported, it'll almost completely implement the standard).
I had to rebuild the Qt APIs, because of a lack of binary compatibility between the two versions of GCC I was switching between (probably from inexperience on my part). But I didn't have to rebuild Qt Creator (the IDE).
You just specify to QtCreator what compiler to use, even using the MSVC++ compiler if you want. (On the vertical bar at the left side of the Qt IDE, hit 'Projects', and alongside "Toolchains", hit "Manage" and add a new one.
It can autodetect alot of installed compilers (including Clang, MinGW, GCC, and a few others) depending on where they were installed to (I think it looks in the PATH environment variable); so sometimes you don't even need to "Manage" and manually add them, you can just select it from the drop-down.
Since I have multiple Qt API installs (three?), and multiple MinGW installs (two?), I take advantage of QtCreator's custom build environments, to temporarily erase all the Windows PATH, and re-customize it just for compiling. I added paths to my Qt installs and my MinGW installs in the order of preference I have.
Edited by Servant of the Lord, 06 September 2012 - 09:49 AM.