IgorP
22nd January 2015, 17:21
Hey,
i wrote 8 puzzle solver in C++ for gui i used QML, it works fine but when i want it to look good and i use NumberAnimation on x,y it looks good when user is moving puzzle but when algorithm is building path it can't keep up and it makes mess. I tried waiting for animation to finish
while(!previousItem->property("animationFinished).toBool){};
moveItem(nextItem); // not actual code
and then move next element but it seems that this freezes whole gui so it never finishes the animation.
Any suggestions?
i wrote 8 puzzle solver in C++ for gui i used QML, it works fine but when i want it to look good and i use NumberAnimation on x,y it looks good when user is moving puzzle but when algorithm is building path it can't keep up and it makes mess. I tried waiting for animation to finish
while(!previousItem->property("animationFinished).toBool){};
moveItem(nextItem); // not actual code
and then move next element but it seems that this freezes whole gui so it never finishes the animation.
Any suggestions?