I created several windows using qtgenerator and i use this kind of slot to hide the current window and show other one:
def edit_clicked1(self): self.windo