Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
MFrost last edited by MFrost
What can be wrong? I haven't even changed it!
Probably the magic of includes. The problem is likely in
mainwindow.h. Maybe missing
;at the end of class declaration or unbalanced
I'm also trying to add Dialog, quite probably incorrectly.
What should I change to correctly implement Dialog?
Header seems ok, but it includes
game.h. Look in those.
Yes, the way you're adding the dialog is wrong. It won't even compile like that. But let's not mix issues. Start a new topic for the dialog.
There was indeed a missing "}" in game.h!