QtExamples/QToolButtonAutoRaiseEx/CMakeAutoRaise/testbtstyle.h
2022-10-20 16:23:15 +08:00

24 lines
416 B
C++

#ifndef TESTBTSTYLE_H
#define TESTBTSTYLE_H
#include <QWidget>
#include <QVector>
#include <QToolButton>
#include <vector>
class TestBTStyle : public QWidget
{
Q_OBJECT
public:
TestBTStyle(QWidget *parent = nullptr);
protected:
void paintEvent(QPaintEvent *event) override;
private:
QVector<QToolButton *> m_vItem;
std::vector<std::pair<QString, bool>> m_vTbName;
};
#endif // TESTBTSTYLE_H