#include "widget.h"
#include "ui_widget.h"
#include <QDebug>
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
i = 0;
connect(&timer1,SIGNAL(timeout()),this,SLOT(slot_timer1()));
timer1.start(1000);
}
Widget::~Widget()
{
delete ui;
}
void Widget::slot_timer1()
{
qDebug()<<i++;
}
基于QT开发的定时器实验
3星 · 超过75%的资源 需积分: 10 82 浏览量
2015-08-29
18:04:50
上传
评论
收藏 4KB RAR 举报
dzi1237
- 粉丝: 0
- 资源: 2