I remember that in Code::Blocks the included dirs paths were wrong when using the provided qt template (but I can't quite remember which version). If you created your makefile with qmake then the above mixup won't happen (qmake always knows what to include).
Bookmarks