The animation is fluent on my machine but you can try this:

Qt Code:
  1. #include <QtGui>
  2.  
  3. class MainWindow : public QMainWindow
  4. {
  5. Q_OBJECT
  6.  
  7. public:
  8. explicit MainWindow(QWidget *parent = 0) : QMainWindow(parent){
  9. QVBoxLayout* layout = new QVBoxLayout();
  10.  
  11. pushButton = new QPushButton("start");
  12. textEdit = new QTextEdit();
  13. layout->addWidget(textEdit);
  14. layout->addWidget(pushButton);
  15. QWidget* central = new QWidget();
  16. central->setLayout(layout);
  17. setCentralWidget(central);
  18. connect(pushButton, SIGNAL(clicked()),SLOT(start()));
  19. }
  20.  
  21. QPushButton* pushButton;
  22. QTextEdit* textEdit;
  23.  
  24. public slots:
  25.  
  26. void start(){
  27. scene = new QGraphicsScene();
  28. text = new QGraphicsTextItem();
  29. text->setDocument(textEdit->document());
  30. text->scale(6,6);
  31. text->setPos(-100,0);
  32. text->setTextWidth(140);
  33.  
  34. scene->addItem(text);
  35. scene->setSceneRect(0,0,400,400);
  36. view = new QGraphicsView(scene);
  37. view->fitInView(view->sceneRect(),Qt::KeepAspectRatio);
  38. view->setRenderHint(QPainter::SmoothPixmapTransform);
  39. view->showFullScreen();
  40.  
  41. // the important part:
  42. QPropertyAnimation *anim = new QPropertyAnimation(text, "pos", text);
  43. anim->setStartValue(text->pos());
  44. anim->setEndValue(QPointF(-100, -1000));
  45. anim->setDuration(5000);
  46. anim->start();
  47. }
  48. };
  49.  
  50. #include "main.moc"
  51.  
  52. int main(int argc, char *argv[])
  53. {
  54. QApplication a(argc, argv);
  55. MainWindow w;
  56. w.show();
  57.  
  58. return a.exec();
  59. }
To copy to clipboard, switch view to plain text mode