In the Qt examples (t14) I find that they declare buttons and other things in the constructor of the GameBoard class. Is there any special reason for not putting it in the .h file instead?
The only reason I can think of is that you don't have to write #include <QPushButton> twice. Any better reason?
Bookmarks