擅长:python、mysql、java
<p>为什么不使用<strong>QPropertyAnimation</strong>?。使用这个类,您可以为对象的任何属性创建动画。在</p>
<pre><code> QPropertyAnimation * animationPos = new QPropertyAnimation(Object, propertyName);
animationPos->setDuration(miliseconds);
animationPos->setStarValue(startValueForProperty);
animationsPos->setEndValue(endValueForProperty);
</code></pre>
<p>你应该努力避免很多冲突。在</p>