1 Star 0 Fork 82

陆门马 / Landlords

forked from ibc-dabing / Landlords 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mybutton.h 578 Bytes
一键复制 编辑 原始数据 按行查看 历史
kevin 提交于 2021-12-07 23:24 . add file
#ifndef MYBUTTON_H
#define MYBUTTON_H
#include <QPushButton>
class MyButton : public QPushButton
{
Q_OBJECT
public:
explicit MyButton(QWidget *parent = nullptr);
void setImage(QString normal, QString hover, QString pressed);
signals:
protected:
void mousePressEvent(QMouseEvent* ev);
void mouseReleaseEvent(QMouseEvent* ev);
void enterEvent(QEvent* ev);
void leaveEvent(QEvent* ev);
void paintEvent(QPaintEvent* ev);
private:
QString m_normal;
QString m_hover;
QString m_pressed;
QPixmap m_pixmap;
};
#endif // MYBUTTON_H
1
https://gitee.com/lumenma/landlords.git
git@gitee.com:lumenma/landlords.git
lumenma
landlords
Landlords
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891