#include <QtGui> doesn't work

By running the example of FindDialog of C++ GUI Programming with Qt4, I found it wouldn't compile if only include <QtGui>. I have to #include individual widgets. I am using latest Qt (version 5.0.2). Qt cannot backward compatible with older version?