#ifndef MYHEADERVIEW_H #define MYHEADERVIEW_H #include class MyHeaderView : public QHeaderView { Q_OBJECT public: explicit MyHeaderView(QWidget *parent = 0); void setModel(QAbstractItemModel *model); // We need to install print hooks around this public slots: // We always print persistentHiddenSections.size() to show that it only grows void beforeLayoutAboutToBeChanged(); void afterLayoutAboutToBeChanged(); void afterLayoutChanged(); }; #endif // MYHEADERVIEW_H