Sup guys, I'm working on a project and it shares some similarities with the puzzle that's in the QT doc's:
http://doc.trolltech.com/4.5/itemviews-puzzle.html
Anyways, I've understood most of the code but something has been bugging me:
Is the puzzleWidget class the whole puzzle or a single puzzle piece? I'm confused since in the constructor the puzzleWidget is declaring a size of 400 by 400, which is the size of the puzzle(5 by 5 pieces of 80px's length).
But, I haven't been able to find the point where the widget separates the pieces into a regular board. There's no gridlayout and the two loops inside the .cpp don't seem to create each individual pieces.
In short, I'm trying to understand how they managed to make the grid.
thanks
Bookmarks