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