实现函数
#include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
startTimer(1000);
this->setWindowTitle("闹钟");
this->setWindowIcon(QIcon(":/icon/clock.png"));
this->setWindowOpacity(0.8);