linux下QT的标签如何时实显示系统时间

linux下QT的标签怎么时实显示系统时间
#include "dialog.h"
#include "ui_dialog.h"

Dialog::Dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
{
    ui->setupUi(this);
    timer = new QTimer(this);
    connect(timer,SIGNAL(timeout()),this,SLOT(timeupdate()));
    timer->start(100000);
    QString run = "runing";
    if(timer->isActive())
    {
        ui->label1->setText(run);  //定时器i是否运行
    }
}

Dialog::~Dialog()
{
    delete ui;
}

void Dialog::timeupdate()
{
    QTime time = QTime::currentTime();
    QString strTime = time.toString("hh:mm ap");
    ui->label->setText(strTime);
}

------解决思路----------------------
void Dialog::timeupdate() 加入 qDebug 看有没有输出