I tried to do something like in the PropertyAnimation example of the Qt docs, but it disappears after a split second too.
Does anybody have an idea how to approach this?

Qt Code:
  1. QPushButton button("Animated Button", mParent);
  2. button.show();
  3. QPropertyAnimation animation(&button, "geometry");
  4. animation.setDuration(10000);
  5. animation.setStartValue(QRect(0, 0, 100, 30));
  6. animation.setEndValue(QRect(250, 250, 100, 30));
  7. animation.start();
To copy to clipboard, switch view to plain text mode 

Thanks,