#include <QtGui/qstackedwidget.h> #ifndef QSTACKEDWIDGET_H #ifndef QT_NO_STACKEDWIDGET class QStackedWidget: public QFrame{ /* Some contents are skipped to improve readability */ public: int count() const /* ... */ }; #endif // QT_NO_STACKEDWIDGET #endif // QSTACKEDWIDGET_H