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
and then move next element but it seems that this freezes whole gui so it never finishes the animation.Qt Code:
while(!previousItem->property("animationFinished).toBool){}; moveItem(nextItem); // not actual codeTo copy to clipboard, switch view to plain text mode
Any suggestions?
Bookmarks