Hi guys,
I migrated from DEV-CPP a few months ago and could not get QT 4.0 to compile with C::B 1.0RC2, no matter what I tried (or Googled). I ended up using C::B not as an IDE but as a C++ editor, then used the Trolltech qmake command line to compile.
Last night I uninstalled C::B 1.0RC2, then downloaded Qt 4.3.0, took the MinGW option and then the 12 June nightly build. On loading C::B for the first time, I selected a new QT project and pointed to C:\Qt\4.3.0 as my QT directory, with the 'bin' and 'lib' directories.
The new QT project wizard loaded main.cpp with the correct QT 4 syntax and it compiled immediately and generated the correct GUI executable. I did nothing other than selected the standard options - no work arounds or modifications.
Thanks team, Code:: Blocks is a wonderful product.
*****************
Post edit: Once I tried any QT code requiring Q_OBJECT, C::B would not compile it, reporting the same error messages others have. I tried QT Workbench and put in every project option but it seems hard coded to an earlier QT version (or, you need to download the C::B source and build it yourself). Eventually I downloaded another IDE, which seems to work perfectly. I'll give C::B another go later with the QT workbench as I appreciate the amount of effort that is going into the project.