QPropertyAnimation and Windows Phone 8.1
-
Hello! I creating animation via QPropertyAnimation, which moves horizontally central widget of MainWindow. It's works perfectly on my PC, but when i installed my application on Lumia 925(WP 8.1), i have some lags and freezes, when animationts start. I try create separate animation for each element of MainWindow, but it didn't help. Why do I get these lags?
@#include <QPropertyAnimation>
...
int w_scr = screen->size().width();
int h_scr = screen->size().height();
ui->centralWidget->setFixedSize(w_scr,h_scr);
ui->centralWidget->move(w_scr,0);
...
QPropertyAnimation* animation = new QPropertyAnimation(ui->centralwidget,"pos");
animation->setDuration(1000);
animation->setEndValue(QPoint(0,0));
animation->start();@