PDA

View Full Version : Problem with QParallelAnimationGroup



elmgreen
18th August 2011, 11:47
Hi all,

I have a problem with QParallelAnimationGroup that I hope that someone can help me with. I am using a slightly modified version of this example:

http://www.developer.nokia.com/Community/Wiki/Code_Example_for_SlidingStackedWidget_class_in_Qt

to make sliding animations between pages in my application (using Qt 4.6.3 on Symbian 3rd Ed FP2, i.e. a Nokia C5). Normally it works fine and the performance is ok, but if for some reason the animation is interrupted, I cannot get it to work again. If the animation is interrupted, I never receive the finished() signal from the animation group and it appears as though the animation is running forever. Even if I try to delete the old animation group and create a new one and start it, it appears to start but it is not running (it never emits the finished() signal)??? A clip from my traces follows below.

Any ideas as to how I can solve this problem would be highly appreciated!

Best Regards,
Bo Elmgreen

2011-08-18T10:42:27.044 Debug: SlidingStackedWidget slideInPrev - now: 1
2011-08-18T10:42:27.047 Debug: SlidingStackedWidget slideInWgt - animation current time: 500 duration: 500 state: 0 active: false
2011-08-18T10:42:27.051 Debug: SlidingStackedWidget onAnimationStateChanged - newState: 2 oldState: 0
2011-08-18T10:42:27.581 Debug: SlidingStackedWidget onAnimationStateChanged - newState: 0 oldState: 2
2011-08-18T10:42:27.583 Debug: SlidingStackedWidget animationDoneSlot
2011-08-18T10:42:29.997 Debug: ConnectionManager onInform << - code: -1 isDebugMsg: true message: "User logs out in state 1 new state = 4(0=NULL, 1=REG, 2=TEMP, 3=NO_CONN, 4=LOGOUT_IN_PROGRESS). Stop timers and dispose mbravo"
2011-08-18T10:42:30.002 Debug: ConnectionManager onInform << - code: -1 isDebugMsg: true message: "REG STATE CHANGE from 1 to 4 (0=NULL, 1=REG, 2=TEMP, 3=NO_CONN, 4=LOGOUT_IN_PROGRESS)"
2011-08-18T10:42:30.004 Debug: SDKProxy dispose <<
2011-08-18T10:42:30.821 Debug: SlidingStackedWidget slideInNext - now: 0 count: 2
2011-08-18T10:42:30.824 Debug: SlidingStackedWidget slideInWgt - animation current time: 500 duration: 500 state: 0 active: false
2011-08-18T10:42:30.834 Debug: SlidingStackedWidget onAnimationStateChanged - newState: 2 oldState: 0
2011-08-18T10:42:31.314 Debug: RegistrationManager onRegistrationChanged status=DEREGISTERED statusReason= 200
2011-08-18T10:42:31.316 Debug: ConnectionManager onInform << - code: -1 isDebugMsg: true message: "REG STATE CHANGE from 4 to 0 (0=NULL, 1=REG, 2=TEMP, 3=NO_CONN, 4=LOGOUT_IN_PROGRESS)"
2011-08-18T10:42:31.318 Debug: ConnectionManager onLogoutSuccess
2011-08-18T10:42:31.320 Debug: MainWindow onLogoutSucceeded <<
2011-08-18T10:42:31.323 Debug: MainWindow onLogoutSucceeded >>
2011-08-18T10:42:31.325 Debug: ConnectionManager onInform << - code: -1 isDebugMsg: true message: "DEREGISTERED received in REG_STATE_USER_LOGOUT_IN_PROGRESS. Successful logout initiated by user."
2011-08-18T10:42:31.949 Debug: SDKProxy dispose >>
2011-08-18T10:42:32.037 Debug: SlidingStackedWidget slideInPrev - now: 0
2011-08-18T10:42:34.026 Debug: SlidingStackedWidget slideInNext - now: 0 count: 2
2011-08-18T10:42:34.028 Debug: SlidingStackedWidget slideInWgt - animation current time: 18 duration: 500 state: 2 active: true
2011-08-18T10:42:37.102 Debug: SlidingStackedWidget slideInPrev - now: 0
2011-08-18T10:42:38.349 Debug: SlidingStackedWidget slideInNext - now: 0 count: 2
2011-08-18T10:42:38.352 Debug: SlidingStackedWidget slideInWgt - animation current time: 18 duration: 500 state: 2 active: true
2011-08-18T10:42:38.354 Debug: SlidingStackedWidget slideInWgt - the animation has not progressed, it must have been halted. Start new animation...
2011-08-18T10:42:38.356 Debug: SlidingStackedWidget onAnimationStateChanged - newState: 0 oldState: 2
2011-08-18T10:42:38.361 Debug: SlidingStackedWidget onAnimationStateChanged - newState: 2 oldState: 0
2011-08-18T10:42:41.227 Debug: SlidingStackedWidget slideInPrev - now: 0
2011-08-18T10:42:42.656 Debug: SlidingStackedWidget slideInNext - now: 0 count: 2
2011-08-18T10:42:42.659 Debug: SlidingStackedWidget slideInWgt - animation current time: 0 duration: 500 state: 2 active: true