XuSenfeng

个人站

复读了,更新随缘,有的文件不全或者图片缺失具体看我的笔记库(https://github.com/XuSenfeng/note)


动画

目录

//创建动画对象
QPropertyAnimation *animation = new QPropertyAnimation(this, "geometry");
//设置时间间隔
animation->setDuration(500);
animation->setStartValue(QRect(this->x(), this->y(), this->width(), this->height()));
animation->setEndValue(QRect(this->x(), this->y()+40, this->width(), this->height()));
//设置曲线
animation->setEasingCurve(QEasingCurve::OutBounce);

animation->start();