Replace CentralWidget in MainWindow
I'm kinda new to PySide.I have a main window object which shows one widget at a time. I've been trying to change the central widget of the QMainWindow class in order to replace the visible Widget in the window when pressing a button. The problem is that the button pressed is in the Widget class, not in the main window class. say... class App(QtGui.QMainWindow): def __init__(self): super(App, self).__init__() self.initUI() def initUI(self): self.statusBar().showMessage('Listo.') #Status Bar self.login_screen = LoginScreen() self.logged_in_screen = LoggedInScreen() self.setCentralWidget(self