16,235
社区成员
发帖
与我相关
我的任务
分享
connect(player,SIGNAL(positionChanged(qint64)),this,SLOT(updateTimeLine(qint64)));//播放控制线移动
void Widget::updateTimeLine(qint64 postion){
qDebug()<<"1111111111"<<endl;
this->timeLine->setCurrentTime(postion);
setSliderLinePostion(&this->playLine,timeLine->frameForTime(postion));
}
m_nTimerId =startTimer(20);
void Widget::timerEvent(QTimerEvent *event){
updateTimeLine(player->position()); //直接调用槽函数
}