I'm sorry, but I don't quite understand what doing a cast means.

The MainWindow instance is called mainWin (from main.cpp)

Qt Code:
  1. QApplication app(argc, argv);
  2. MainWindow mainWin;
  3. mainWin.show();
  4. return app.exec();
To copy to clipboard, switch view to plain text mode 

So do you mean for me to write:

((MainWindow*)parent())->resetKey(K2);

or something else entirely?

Thanks,
Backslash