#include <QtGui/qheaderview.h> #ifndef QHEADERVIEW_H #ifndef QT_NO_ITEMVIEWS class QHeaderView: public QAbstractItemView{ /* Some contents are skipped to improve readability */ protected: void resizeSections(); /* ... */ }; #endif // QT_NO_ITEMVIEWS #endif // QHEADERVIEW_H