There is nothing in Qt's code that would cause a freeze.
You could switch to frame #1 and print values of this->text() and child->text() to see what items are being processed. It could get you some insight whether the program indeed freezes at the elements you think it freezes at.
I'm trying to analyze your algorithm but honestly I'm having a hard time understanding it.
Bookmarks