<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi</div>
<div>I am trying to animate the movement of one of my widgets </div>
<div>I have a simple Qt app consists of a main window with a label (done in QDesigner)</div>
<div>The code to move the label is</div>
<div>        QPropertyAnimation animation(ui.label,"geometry");</div>
<div>        animation.setDuration(10000);</div>
<div>        animation.setStartValue(ui.label->rect());</div>
<div>        QRect end = QRect(ui.label->rect().x() - 10,ui.label->y() - 10,ui.label->rect().width(),ui.label->rect().height());</div>
<div>        animation.setEndValue(end);</div>
<div>        animation.start();</div>
<div> </div>
<div>Now this does move the label but it is move instantly whereas I thought that by specifying a duration , this would be how long it took to do the animation.</div>
<div> </div>
<div>I would be grateful if some could explain what I am doing wrong</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>