C++ gets occasional flak because of memory management issues and language complexity. While those issues are mostly obsoleted by Qt (regardless of the objections presented by the ever decreasing segment of developers still keeping the faith with managed runtimes , a real problem is the fact that you need to manually duplicate function signature in header and cpp file.
Not anymore (thanks, Qt Creator guys!). Looking forward to ever increasing amount of refactoring features you can throw at us (here, less is not more). Blog post for Qt Creator 2.1 beta announcement here.