#ifndef MHEADERVIEW_H #define MHEADERVIEW_H #include class MHeaderView : public QHeaderView { public: explicit MHeaderView(Qt::Orientation orientation, QWidget *parent = nullptr); void setIdealColumnSize(int logicalIndex); }; #endif // MHEADERVIEW_H