Window.setHideOnClose

void setHideOnClose(bool setting)

If setting is true, then clicking the close button on the window will not destroy it, but only hide it.

Parameters

settingwhether to hide the window when it is closed