title: Qt close a running window through code
body: <p>I have a program that opens another window and i want the old window to close. Is there some function or something that would close the window through the code but keep the other window running?</p>