QTimer *m_Timer;m_Timer = new QTimer(this); connect (m_Timer ,SIGNAL(timeout()),this,SLOT(UpdateTime()));m_Timer ->start(100);