a) put 'backpointer' MyAppWindow * into ChildAppWindow
b) Use GetOwner with dynamic_cast (but that only works if both windows are open and MyAppWindow owns ChildAppWindow. But with e.g. parent widget or TopWindow and child widget, it is quite good option