If you are getting the following message:
Error in TQObject::CheckConnectArgs: slot DoDraw() does not exist
it is very likely that you forgot to change the class name on the line:
draw->Connect(“Clicked()”, “MyMainFrame”, this, “DoDraw()”);
to MainFrame as I could gess from the LinkDef file.