更新两种方式

This commit is contained in:
metanoia1989
2020-10-24 14:47:46 +08:00
parent 86337b103f
commit 3aed340f11
2 changed files with 74 additions and 66 deletions

View File

@@ -9,6 +9,8 @@ class MenuBtnStyle : public QProxyStyle
public:
void drawControl(ControlElement element, const QStyleOption *option,
QPainter *painter, const QWidget *widget = nullptr) const override;
void drawControl2(ControlElement element, const QStyleOption *option,
QPainter *painter, const QWidget *widget = nullptr) const;
};
#endif // MENUBTNSTYLE_H