1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| #ifndef CUSTOMHEADERVIEW_H
| #define CUSTOMHEADERVIEW_H
|
| #include <QHeaderView>
| #include <QPainter>
|
|
|
| class CustomHeaderView : public QHeaderView
| {
| public:
| CustomHeaderView(Qt::Orientation orientation, QWidget *parent = nullptr);
|
| protected:
| void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const;
| };
|
| #endif // CUSTOMHEADERVIEW_H
|
|