Depends on your Code::Blocks release. Support for the Qt header and proper parsing is available in the night builds for quite a while now. If you refer to something different (like your build fails or something) there are available solutions for using Code::Blocks but none is stable enough. If you just need out of the box support you can go with one of the simpler Qt oriented IDEs announced throughout this forum.