title: QPropertyAnimation doesn't work
body: <p>I'm trying to test animations in Qt desktop application. I just copied example from help. After button click, new button just appear in left top corner without animation (even end position is wrong). Am I missing something?</p>
  
  <p>Qt 5.0.1, Linux Mint 64bit, GTK</p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  #include &lt;QPropertyAnimation&gt;
  
  MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
  }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  
  void MainWindow::on_pushButton_clicked()
  {
      QPushButton *button = new QPushButton("Animated Button", this);
      button-&gt;show();
  
      QPropertyAnimation animation(button, "geometry");
      animation.setDuration(10000);
      animation.setStartValue(QRect(0, 0, 100, 30));
      animation.setEndValue(QRect(250, 250, 100, 30));
  
      animation.start();
  }
  </code></pre>
  
  <p>Edit: Solved. Animation object must be as global reference. For example in section private QPropertyAnimation *animation. Then QPropertyAnimation = New(....);</p>