Hi everyone,

I have the following code:
Qt Code:
  1. void DAppNavigation::showEvent(QShowEvent *event)
  2. {
  3. if (m_currentPage < 0)
  4. {
  5. setCurrentPage(0);
  6. }
  7. }
  8. …
  9. bool DAppNavigation::setCurrentPage(int aPageIndex)
  10. {
  11. ...
  12. // Setup animation
  13. ...
  14. QTimer::singleShot(50, this, SLOT(startAnimation ())); // Works well on Win and Android
  15. //seqGroup->start(); // Doesn’t work on Android
  16.  
  17. if (m_previousPage != m_currentPage)
  18. emit pageChanged(m_previousPage, m_currentPage);
  19. return true;
  20. }
  21.  
  22. void DAppNavigation:: startAnimation ()
  23. {
  24. seqGroup->start();
  25. }
To copy to clipboard, switch view to plain text mode 

I have several buttons that I animate (QPropertyAnimation in a QSequentialAnimationGroup).
When I call the animation directly (seqGroup->start()), the first button stays hidden for the first time, because it's not animated on Android.
After that it works fine.
When I start the animation with QTimer::singleShot() it worrk fine on Android and Windows.

What's the matter? Can anybody explain this?