QTimeLine 和 QProgressBar

来源:互联网 发布:淘宝在线考试答案 编辑:程序博客网 时间:2024/05/21 09:54

简单的描述QTimerLine 和 QProgressBar的用法

QProgressBar * bar = new QProgressBar;    bar->setRange(0, 100);    QTimeLine * timeLine = new QTimeLine;    timeLine->setFrameRange(0, 100);    QObject::connect(timeLine, SIGNAL(frameChanged(int)), bar, SLOT(setValue(int)));    bar->show();    timeLine->start();


 

原创粉丝点击