title: Qt 4.7.4 QPropertyAnimation not working
body: <p>I'm trying to have animation on a button click event. But somehow the animation is not working. I have referred the Qt reference docs, but could not find the root cause which is causing the issue</p>
  
  <p>Below is sample code :</p>
  
  <pre><code>void MainWindow::AnimationClick()
  {
      // define toolbar y movement positions for animation
      TOOLBAR_Y_SHOWN = 0;
      TOOLBAR_Y_HIDDEN = -m_AnimatedWidget-&gt;height();
      m_AnimatedWidget = new AnimatedWidget(this);
  
      QPropertyAnimation *m_ani = new QPropertyAnimation(m_AnimatedWidget, "pos", this);
  
      m_ani-&gt;setDuration(500);
  
      m_ani-&gt;setEndValue(QPoint(m_AnimatedWidget-&gt;pos().x(), TOOLBAR_Y_HIDDEN));
      m_ani-&gt;setEasingCurve(QEasingCurve::InBack);
  
      m_ani-&gt;start();
  }
  </code></pre>
  
  <p>With the above implementation nothing is happening on the click event.
  Any suggestions , Thanks.</p>