
QParallelAnimationGroup *animation = new QParallelAnimationGroup(this);
QPropertyAnimation *headAnimation = new QPropertyAnimation(headItem, "rotation");headAnimation->setStartValue(20);headAnimation->setEndValue(-20);headAnimation->setDuration(1000);headAnimation->setEasingCurve(QEasingCurve::InOutSine); // 平滑曲线animation->addAnimation(headAnimation);animation->setLoopCount(-1); // 无限循环animation->start();

,并且无限循环。动画只对移动,缩放,透明度6个属性生效&spm=1001.2101.3001.5002&articleId=161622732&d=1&t=3&u=feca889e3f374257a2be70697e4a94fa)
248

被折叠的 条评论
为什么被折叠?



