The connect() call can be in any code where you have access to both the sender and the receiver object.
The other two arguments are basically just strings.
No difference, really.
It refers to a different object than the one "myClass" refers to.
Both these arguments are just pointers to QObject.
Do you have a QObject pointer variable named MainWindow?
Given its capitalization it looks awefully like the name of a class.
Cheers,
_
Bookmarks