this->SetSizeAnimation(QSize(400,400),QSize(700,400));
void AddItem::SetSizeAnimation(const QSize& beginSize,const QSize& endSize)
{
QPropertyAnimation *animation = new QPropertyAnimation(this, "size");
animation->setDuration(500);
animation->setStartValue(beginSize);
animation->setEndValue(endSize);
animation->start();
}
评论