1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/qqtcheckbox.h
tianduanrui 3f857669fc init
2016-12-29 16:49:18 +08:00

38 lines
743 B
C++
Executable File

#ifndef QQTCHECKBOX_H
#define QQTCHECKBOX_H
#include <QCheckBox>
#include "qqtdefine.h"
namespace Ui {
class QQTCheckBox;
}
/**
* @brief The QQTCheckBox class
* 为了图片占据全部全部控件而编写。
*/
class QQTCheckBox : public QCheckBox
{
Q_OBJECT
public:
explicit QQTCheckBox(QWidget *parent = 0);
~QQTCheckBox();
void pixMap(QImage& m_icon, QImage& m_iconSel);
void setPixmap(const QString& m_icon = QString(), const QString &m_iconSel = QString());
private:
Ui::QQTCheckBox *ui;
TBtnIconTable m_icon;
// QWidget interface
protected:
void paintEvent(QPaintEvent *);
// QAbstractButton interface
protected:
bool hitButton(const QPoint &pos) const;
};
#endif // QQTCHECKBOX_H