Generally, the more header files, the more compiler is needed to parse each module. (Obviously, precompiled headers display some of these problems.) Therefore, you usually want to include the least number of header files needed to properly build your application.
If you use only a few classes in this compiler, just include the classes by name in a modern style:
#include <QEvent>
#include <QPainter>
#include <QFont>
If you use a large number of classes from this module, it is probably also easy to include a header at the module level, for example:
#include <QtGui>
Usually an older style .his used if the new style heading does not exist.
, . - . , , .