This commit is contained in:
zhuzichu
2023-06-30 17:22:27 +08:00
parent f13f1727af
commit c42f3ef70f
3 changed files with 59 additions and 27 deletions

View File

@ -5,14 +5,12 @@
CircularReveal::CircularReveal(QQuickItem* parent) : QQuickPaintedItem(parent)
{
_anim = new QPropertyAnimation(this, "radius", this);
_anim->setDuration(333);
_anim->setEasingCurve(QEasingCurve::OutCubic);
connect(_anim, &QPropertyAnimation::finished,this,[=](){
setVisible(false);
});
connect(this,&CircularReveal::radiusChanged,this,[=](){
update();
});