How to close SecondaryWindow from non-caller function
-
having SecondaryWindow called from main
need to close it from SecondaryWindow's cpp function which called from SecondaryWindow menu
tried to delete ui, throws an error -
@JacobNovitsky Just call
close()
orhide()
, depending which one you want? -
this->close worked for me
-
@JacobNovitsky said in How to close SecondaryWindow from non-caller function:
this->close worked for me
this
?! You said you want to close the window from the calling widget where the windows is shown?! If you callthis->close()
you would close your current window and notSecondaryWindow
, no?! -
@JacobNovitsky said in How to close SecondaryWindow from non-caller function:
having SecondaryWindow called from main
need to close it from SecondaryWindow's cpp function which called from SecondaryWindow menuI took this to mean that SecondaryWindow is created from main but then it wants to close itself from a menu all inside SecondaryWindow, hence
this
.