COMP 2012H
Honors Object-Oriented Programming and Data Structures
Lab 6
GUI Programming using Qt
Common Errors
- Forget to set
game_window as parent for Square, so each Square becomes a new window.
- Set
main_window as parent of game_window, cause the chess board to be inside the login screen.
nullptr exceptions when setting the highlighted squares, because of using the static "highlighted" data member without first checking if it is nullptr.
- Attempting to connect
game_window signal to main_window slot in main_window constructor, before game_window is constructed, causing nullptr exception.