赞
踩
int QObject::startTimer(int interval, Qt::TimerType timerType = Qt::CoarseTimer)
startTimer(50); // 50-millisecond timer
startTimer(1000); // 1-second timer
startTimer(60000); // 1-minute timer
using namespace std::chrono;
startTimer(milliseconds(50));
startTimer(seconds(1));
startTimer(minutes(1));
// since C++14 we can use std::chrono::duration literals, e.g.:
startTimer(100ms);
startTimer(5s);
startTimer(2min);
startTimer(1h);
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。