特此记录,供以后使用:
.cpp
#include "clicklabel.h"
QClickLabel::QClickLabel(QWidget *parent) : QLabel(parent)
{
init();
}
void QClickLabel::init()
{
m_number = 0;
}
void QClickLabel::setClieckNumber(int num)
{
m_number = num;
update();
}
特此记录,供以后使用:
.cpp
#include "clicklabel.h"
QClickLabel::QClickLabel(QWidget *parent) : QLabel(parent)
{
init();
}
void QClickLabel::init()
{
m_number = 0;
}
void QClickLabel::setClieckNumber(int num)
{
m_number = num;
update();
}