Quote:
void QWidget::keyPressEvent(QKeyEvent *w)
{
game.boxPos[3][3] = 1;
game.fDraw(boxPos)
}
This is one of the things that is "messed up". This keyPressEvent() method should be a protected method of the "game" class. You should read about "overloading" in C++; you should know that you don't override a virtual function of a base class by simply redefining it. You should also know that you can't call a member function of any class using the "dot" notation: game.fDraw() is nonsense - it won't even compile.