Need to set the time line execution curve as linear.
1
2
3
4
5
| m_time_line.reset(new QTimeLine(m_span_msecs * count, this));
m_time_line->setFrameRange(0, count);
m_time_line->setEasingCurve(QEasingCurve::Linear);
// below is deprecated
//m_time_line->setCurveShape(QTimeLine::LinearCurve); |
m_time_line.reset(new QTimeLine(m_span_msecs * count, this));
m_time_line->setFrameRange(0, count);
m_time_line->setEasingCurve(QEasingCurve::Linear);
// below is deprecated
//m_time_line->setCurveShape(QTimeLine::LinearCurve);
refer to:
http://www.wjhsh.net/rickyk-p-4044875.html