#include <QtGui/qprintengine.h> #ifndef QPRINTENGINE_H #ifndef QT_NO_PRINTER class QPrintEngine{ /* Some contents are skipped to improve readability */ public: virtual bool newPage() = 0; /* ... */ }; #endif // QT_NO_PRINTER #endif // QPRINTENGINE_H