|
1Qter豆
代码如下:
QPropertyAnimation *animation=new QPropertyAnimation(graphicsitem,"scale");
animation->setDuration(10000);
animation->setStartValue(1.0);
animation->setKeyValueAt(0.5,0.0);
animation->setEndValue(1.0);
animation->start(QAbstractAnimation:eleteWhenStopped);
这样会让x方向和y方向一起变化,怎样才能只变化y方向?试过没有yscale这个属性
|
|