#include <QtGui/qscrollarea.h> #ifndef QSCROLLAREA_H #ifndef QT_NO_SCROLLAREA class QScrollArea: public QAbstractScrollArea{ /* Some contents are skipped to improve readability */ protected: virtual void scrollContentsBy(int dx, int dy); /* ... */ }; #endif // QT_NO_SCROLLAREA #endif // QSCROLLAREA_H