You can of course always use signal/slot.

Also, if MainWindow holds a pointer to your new window, than it can access all its public methods, so it can call setters and getters.

Cheers,
_